900 |
How do I get sorted the column as string, numeric, date, date and time. Also how can it be applied to drop down filter panel
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Date" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComSortType of hoColumn to OLESortDate Set ComDisplayFilterButton of hoColumn to True Set ComDisplayFilterPattern of hoColumn to False Set ComDisplayFilterDate of hoColumn to True Set ComFilterList of hoColumn to (OLEexShowFocusItem + OLEexShowCheckBox + OLEexSortItemsDesc) Send Destroy to hoColumn Send Destroy to hoColumns Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Variant voColumn1 Get ComAdd of hoColumns1 "DateTime" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComSortType of hoColumn1 to OLESortDateTime Set ComDisplayFilterButton of hoColumn1 to True Set ComDisplayFilterPattern of hoColumn1 to False Set ComFilterList of hoColumn1 to (OLEexShowFocusItem + OLEexShowCheckBox + OLEexSortItemsDesc) Send Destroy to hoColumn1 Send Destroy to hoColumns1 Variant voColumns2 Get ComColumns to voColumns2 Handle hoColumns2 Get Create (RefClass(cComColumns)) to hoColumns2 Set pvComObject of hoColumns2 to voColumns2 Variant voColumn2 Get ComAdd of hoColumns2 "Time" to voColumn2 Handle hoColumn2 Get Create (RefClass(cComColumn)) to hoColumn2 Set pvComObject of hoColumn2 to voColumn2 Set ComSortType of hoColumn2 to OLESortTime Set ComDisplayFilterButton of hoColumn2 to True Set ComDisplayFilterPattern of hoColumn2 to False Set ComFilterList of hoColumn2 to (OLEexShowFocusItem + OLEexShowCheckBox + OLEexSortItemsDesc) Set ComFormatColumn of hoColumn2 to "time(value)" Send Destroy to hoColumn2 Send Destroy to hoColumns2 Variant voColumns3 Get ComColumns to voColumns3 Handle hoColumns3 Get Create (RefClass(cComColumns)) to hoColumns3 Set pvComObject of hoColumns3 to voColumns3 Variant voColumn3 Get ComAdd of hoColumns3 "Numeric" to voColumn3 Handle hoColumn3 Get Create (RefClass(cComColumn)) to hoColumn3 Set pvComObject of hoColumn3 to voColumn3 Set ComSortType of hoColumn3 to OLESortNumeric Set ComDisplayFilterButton of hoColumn3 to True Set ComFilterList of hoColumn3 to (OLEexShowFocusItem + OLEexShowCheckBox + OLEexSortItemsDesc) Send Destroy to hoColumn3 Send Destroy to hoColumns3 Variant voColumns4 Get ComColumns to voColumns4 Handle hoColumns4 Get Create (RefClass(cComColumns)) to hoColumns4 Set pvComObject of hoColumns4 to voColumns4 Variant voColumn4 Get ComAdd of hoColumns4 "String" to voColumn4 Handle hoColumn4 Get Create (RefClass(cComColumn)) to hoColumn4 Set pvComObject of hoColumn4 to voColumn4 Set ComDisplayFilterButton of hoColumn4 to True Set ComFilterList of hoColumn4 to (OLEexShowFocusItem + OLEexShowCheckBox + OLEexSortItemsDesc) Send Destroy to hoColumn4 Send Destroy to hoColumns4 Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComAddItem of hoItems "1/27/2010" to h Set ComCellCaption of hoItems h 1 to "1/27/2010 10:00:00 AM" Set ComCellCaption of hoItems h 2 to (ComCellCaption(hoItems,h,1)) Set ComCellCaption of hoItems h 3 to 1 Set ComCellCaption of hoItems h 4 to (ComCellCaption(hoItems,h,3)) Get ComAddItem of hoItems "1/27/2011" to h Set ComCellCaption of hoItems h 1 to "1/27/2011 9:00:00 AM" Set ComCellCaption of hoItems h 2 to (ComCellCaption(hoItems,h,1)) Set ComCellCaption of hoItems h 3 to 11 Set ComCellCaption of hoItems h 4 to (ComCellCaption(hoItems,h,3)) Get ComAddItem of hoItems "11/2/2010" to h Set ComCellCaption of hoItems h 1 to "11/2/2010 9:00:00 AM" Set ComCellCaption of hoItems h 2 to (ComCellCaption(hoItems,h,1)) Set ComCellCaption of hoItems h 3 to 2 Set ComCellCaption of hoItems h 4 to (ComCellCaption(hoItems,h,3)) Send Destroy to hoItems Variant voColumns5 Get ComColumns to voColumns5 Handle hoColumns5 Get Create (RefClass(cComColumns)) to hoColumns5 Set pvComObject of hoColumns5 to voColumns5 Variant voColumn5 Get ComItem of hoColumns5 "DateTime" to voColumn5 Handle hoColumn5 Get Create (RefClass(cComColumn)) to hoColumn5 Set pvComObject of hoColumn5 to voColumn5 Set ComDisplayFilterDate of hoColumn5 to False Send Destroy to hoColumn5 Send Destroy to hoColumns5 Send ComEndUpdate End_Procedure |
899 |
I am using Layout property to sort multiple columns at once. The problem is that all items get expanded. How do I prevent that
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComLinesAtRoot to OLEexLinesAtRoot Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "P1" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDef of hoColumn OLEexCellHasCheckBox to True Set ComPartialCheck of hoColumn to True Send Destroy to hoColumn Send Destroy to hoColumns Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Variant voColumn1 Get ComAdd of hoColumns1 "P2" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComDef of hoColumn1 OLEexCellHasCheckBox to True Set ComPartialCheck of hoColumn1 to True Set ComFormatColumn of hoColumn1 to "1 index ``" Send Destroy to hoColumn1 Send Destroy to hoColumns1 Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComAddItem of hoItems "Root" to h Get ComInsertItem of hoItems h "Child A" to Nothing Get ComInsertItem of hoItems h "Child B" to Nothing Get ComInsertItem of hoItems h "Child A" to Nothing Get ComInsertItem of hoItems h "Child B" to Nothing Get ComAddItem of hoItems "Root" to Nothing Get ComAddItem of hoItems "Root" to Nothing Send Destroy to hoItems Set ComSingleSort to False Set ComLayout to "multiplesort="C0:1 C1:2";collapse=""" Send ComEndUpdate End_Procedure |
898 |
How can I get ride / hide the image being dragged by OLE Drag and Drop
// Occurs when the OLEDrag method is called. Procedure OnComOLEStartDrag Variant llData Integer llAllowedEffects Forward Send OnComOLEStartDrag llData llAllowedEffects // Data.SetData("data to drag") Move 1 to AllowedEffects End_Procedure Procedure OnCreate Forward Send OnCreate Set ComOLEDropMode to OLEexOLEDropManual Set ComBackground OLEexDragDropAfter to (RGB(255,255,255)) Set ComLinesAtRoot to OLEexLinesAtRoot Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Default" to Nothing Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComAddItem of hoItems "Root" to h Get ComInsertItem of hoItems h "Child 1" to Nothing Get ComInsertItem of hoItems h "Child 2" to Nothing Set ComExpandItem of hoItems h to True Send Destroy to hoItems End_Procedure |
897 |
I'm trying to use automatic numbering of the outline. How can I have A, B, C for root items, 1, 2, 3 for the sub-items, and a, b, c for sub-sub-items (sample 3)
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComLinesAtRoot to OLEexLinesAtRoot Set ComDrawGridLines to OLEexRowLines Set ComAutoDrag to OLEexAutoDragPositionAny Set ComHasLines to OLEexSolidLine Set ComIndent to 16 Set ComMarkSearchColumn to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDef of hoColumn OLEexCellCaptionFormat to 1 Set ComFormatColumn of hoColumn to "((1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 + `` : (=:0 mid (1 + 1 + =:1) ) + `)` ) + ` ` + value" Send Destroy to hoColumn Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComAddItem of hoItems "Root" to h Get ComInsertItem of hoItems h "Child" to Nothing Variant hChild Get ComInsertItem of hoItems h "Child" to hChild Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems h "Child" to Nothing Set ComExpandItem of hoItems 0 to True Get ComAddItem of hoItems "Root" to h Get ComInsertItem of hoItems h "Child" to Nothing Get ComInsertItem of hoItems h "Child" to hChild Set ComCellState of hoItems hChild 0 to 1 Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems h "Child" to Nothing Send Destroy to hoItems Send ComEndUpdate End_Procedure |
896 |
I'm trying to use automatic numbering of the outline. How can I have A, B, C for root items, 1, 2, 3 for the sub-items, and a, b, c for sub-sub-items (sample 2)
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComLinesAtRoot to OLEexLinesAtRoot Set ComGridLineColor to (RGB(190,190,190)) Set ComDrawGridLines to OLEexRowLines Set ComAutoDrag to OLEexAutoDragPositionAny Set ComHasLines to OLEexSolidLine Set ComIndent to 16 Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Default" to Nothing Variant voColumn Get ComAdd of hoColumns "" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDef of hoColumn OLEexCellCaptionFormat to 1 Set ComDef of hoColumn OLEexCellPaddingRight to 4 Set ComAllowSizing of hoColumn to False Set ComWidth of hoColumn to 36 Set ComPosition of hoColumn to 0 Set ComFormatColumn of hoColumn to "(1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 : (`............` left 2 * (=:0 count `.`)) + (=:0 mid (1 + 1 + =:1) ) " Send Destroy to hoColumn Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComAddItem of hoItems "Root" to h Get ComInsertItem of hoItems h "Child" to Nothing Variant hChild Get ComInsertItem of hoItems h "Child" to hChild Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems h "Child" to Nothing Set ComExpandItem of hoItems 0 to True Get ComAddItem of hoItems "Root" to h Get ComInsertItem of hoItems h "Child" to Nothing Get ComInsertItem of hoItems h "Child" to hChild Set ComCellState of hoItems hChild 0 to 1 Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems h "Child" to Nothing Send Destroy to hoItems Send ComEndUpdate End_Procedure |
895 |
I'm trying to use automatic numbering of the outline. How can I have A, B, C for root items, 1, 2, 3 for the sub-items, and a, b, c for sub-sub-items (sample 1)
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComLinesAtRoot to OLEexLinesAtRoot Set ComDrawGridLines to OLEexRowLines Set ComAutoDrag to OLEexAutoDragPositionAny Set ComHasLines to OLEexSolidLine Set ComIndent to 16 Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Default" to Nothing Variant voColumn Get ComAdd of hoColumns "" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDef of hoColumn OLEexCellCaptionFormat to 1 Set ComDef of hoColumn OLEexCellPaddingRight to 4 Set ComAlignment of hoColumn to OLERightAlignment Set ComAllowSizing of hoColumn to False Set ComWidth of hoColumn to 24 Set ComPosition of hoColumn to 0 Set ComFormatColumn of hoColumn to "(1:=(0 :=(1 rpos '.|A-Z||a-z|')) rfind `.`) < 0 ? `<b>` + =:0 : `<i>` + (=:0 mid (1 + 1 + =:1) ) " Send Destroy to hoColumn Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComAddItem of hoItems "Root" to h Get ComInsertItem of hoItems h "Child" to Nothing Variant hChild Get ComInsertItem of hoItems h "Child" to hChild Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems h "Child" to Nothing Set ComExpandItem of hoItems 0 to True Get ComAddItem of hoItems "Root" to h Get ComInsertItem of hoItems h "Child" to Nothing Get ComInsertItem of hoItems h "Child" to hChild Set ComCellState of hoItems hChild 0 to 1 Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems hChild "Child" to Nothing Get ComInsertItem of hoItems h "Child" to Nothing Send Destroy to hoItems Send ComEndUpdate End_Procedure |
894 |
Is it possible to have a different alignment for parts of the cell's caption
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComTreeColumnIndex to -1 Set ComDrawGridLines to OLEexRowLines Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Default" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDef of hoColumn OLEexCellHasCheckBox to True Send Destroy to hoColumn Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Set ComCellHAlignment of hoItems (ComAddItem(hoItems,"all-left")) 0 to OLELeftAlignment Set ComCellHAlignment of hoItems (ComAddItem(hoItems,"all-center")) 0 to OLECenterAlignment Set ComCellHAlignment of hoItems (ComAddItem(hoItems,"all-right")) 0 to OLERightAlignment Variant h Get ComAddItem of hoItems "left<c>center<r>right" to h Set ComCellCaptionFormat of hoItems h 0 to OLEexHTML Send Destroy to hoItems Send ComEndUpdate End_Procedure |
893 |
I have a column with Def(exCellSingleLine) property on False, word-wrapping, and I am wondering if possible to update the column's content while user is resizing it
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "MultipleLine" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComWidth of hoColumn to 32 Set ComDef of hoColumn OLEexCellSingleLine to False Set ComDef of hoColumn OLEexColumnResizeContiguously to True Send Destroy to hoColumn Variant voColumn1 Get ComAdd of hoColumns "SingleLine" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComDef of hoColumn1 OLEexCellSingleLine to False Send Destroy to hoColumn1 Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Set ComCellCaption of hoItems (ComAddItem(hoItems,"This is a bit of long text that should break the line")) 1 to "This is a bit of long text that should break the line" Send Destroy to hoItems Send ComEndUpdate End_Procedure |
892 |
How do I sort the index column as numeric
// Occurs after a new Item has been inserted to Items collection. Procedure OnComAddItem HITEM llItem Forward Send OnComAddItem llItem Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Set ComCellData of hoItems llItem 1 to (ComItemToIndex(hoItems,llItem)) Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComDrawGridLines to OLEexAllLines Set ComColumnAutoResize to True Set ComShowFocusRect to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Next" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDef of hoColumn OLEexCellPaddingLeft to 4 Set ComDef of hoColumn OLEexHeaderPaddingLeft to 4 Send Destroy to hoColumn Send Destroy to hoColumns Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Variant voColumn1 Get ComAdd of hoColumns1 "Index" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComAllowSizing of hoColumn1 to False Set ComWidth of hoColumn1 to 48 Set ComFormatColumn of hoColumn1 to "(((0 := (1 index ``)) mod 3) case ( default: ``; 0 : `<r><fgcolor=B0B0B0>`; 1: ``; 2 : `<c><fgcolor=808080>` )) + str(=:0)" Set ComDef of hoColumn1 OLEexCellCaptionFormat to 1 Set ComSortType of hoColumn1 to OLESortUserData Set ComPosition of hoColumn1 to 0 Send Destroy to hoColumn1 Send Destroy to hoColumns1 Variant voItems1 Get ComItems to voItems1 Handle hoItems1 Get Create (RefClass(cComItems)) to hoItems1 Set pvComObject of hoItems1 to voItems1 Get ComAddItem of hoItems1 "Item 1" to Nothing Get ComAddItem of hoItems1 "Item 2" to Nothing Get ComAddItem of hoItems1 "Item 3" to Nothing Get ComAddItem of hoItems1 "Item 4" to Nothing Get ComAddItem of hoItems1 "Item 5" to Nothing Get ComAddItem of hoItems1 "Item 6" to Nothing Get ComAddItem of hoItems1 "Item 7" to Nothing Get ComAddItem of hoItems1 "Item 8" to Nothing Get ComAddItem of hoItems1 "Item 9" to Nothing Get ComAddItem of hoItems1 "Item 10" to Nothing Send Destroy to hoItems1 Send ComEndUpdate End_Procedure |
891 |
How can I put icons/images into buttons
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComColumnAutoResize to True Send ComImages "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=" Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "C+B" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComAllowSizing of hoColumn to False Set ComWidth of hoColumn to 48 Set ComFormatColumn of hoColumn to "` <img>` + ( 1 + (1 index ``) mod 3 ) + `</img> `" Set ComDef of hoColumn OLEexCellCaptionFormat to 1 Set ComDef of hoColumn OLEexCellHasCheckBox to True Set ComDef of hoColumn OLEexCellHasButton to True Set ComDef of hoColumn OLEexCellButtonAutoWidth to True Send Destroy to hoColumn Send Destroy to hoColumns Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Get ComAdd of hoColumns1 "" to Nothing Send Destroy to hoColumns1 Set ComDrawGridLines to OLEexVLines Set ComDefaultItemHeight to 20 Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Get ComAddItem of hoItems "" to Nothing Get ComAddItem of hoItems "" to Nothing Get ComAddItem of hoItems "" to Nothing Get ComAddItem of hoItems "" to Nothing Get ComAddItem of hoItems "" to Nothing Get ComAddItem of hoItems "" to Nothing Get ComAddItem of hoItems "" to Nothing Get ComAddItem of hoItems "" to Nothing Send Destroy to hoItems Send ComEndUpdate End_Procedure |
890 |
Is it possible to have a CheckBox and Button TOGETHER on all cells in a column
// Fired after the user clicks on the cell of button type. Procedure OnComCellButtonClick HITEM llItem Integer llColIndex Forward Send OnComCellButtonClick llItem llColIndex Showln "CellButtonClick" llItem End_Procedure // Fired after cell's state has been changed. Procedure OnComCellStateChanged HITEM llItem Integer llColIndex Forward Send OnComCellStateChanged llItem llColIndex Showln "CellStateChanged" llItem End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComColumnAutoResize to True Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComAllowSizing of hoColumn to False Set ComWidth of hoColumn to 32 Set ComFormatColumn of hoColumn to "1 index ``" Send Destroy to hoColumn Send Destroy to hoColumns Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Variant voColumn1 Get ComAdd of hoColumns1 "Def" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComAllowSizing of hoColumn1 to False Set ComWidth of hoColumn1 to 48 Set ComFormatColumn of hoColumn1 to "` `" Set ComDef of hoColumn1 OLEexCellHasCheckBox to True Set ComDef of hoColumn1 OLEexCellHasButton to True Set ComDef of hoColumn1 OLEexCellButtonAutoWidth to True Send Destroy to hoColumn1 Send Destroy to hoColumns1 Variant voColumns2 Get ComColumns to voColumns2 Handle hoColumns2 Get Create (RefClass(cComColumns)) to hoColumns2 Set pvComObject of hoColumns2 to voColumns2 Get ComAdd of hoColumns2 "" to Nothing Send Destroy to hoColumns2 Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Get ComAddItem of hoItems "" to Nothing Get ComAddItem of hoItems "" to Nothing Get ComAddItem of hoItems "" to Nothing Get ComAddItem of hoItems "" to Nothing Get ComAddItem of hoItems "" to Nothing Get ComAddItem of hoItems "" to Nothing Get ComAddItem of hoItems "" to Nothing Get ComAddItem of hoItems "" to Nothing Send Destroy to hoItems Send ComEndUpdate End_Procedure |
889 |
Does filtering work with umlauts / accents characters
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Names" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDisplayFilterButton of hoColumn to True Set ComFilterType of hoColumn to OLEexPattern Send Destroy to hoColumn Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Get ComAddItem of hoItems "Mantel" to Nothing Get ComAddItem of hoItems "Mechanik" to Nothing Get ComAddItem of hoItems "Motor" to Nothing Get ComAddItem of hoItems "Murks" to Nothing Get ComAddItem of hoItems "Märchen" to Nothing Get ComAddItem of hoItems "Möhren" to Nothing Get ComAddItem of hoItems "Mühle" to Nothing Get ComAddItem of hoItems "Sérigraphie" to Nothing Send Destroy to hoItems Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Variant voColumn1 Get ComItem of hoColumns1 0 to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComFilter of hoColumn1 to "*ä*" Send Destroy to hoColumn1 Send Destroy to hoColumns1 Send ComApplyFilter Send ComEndUpdate End_Procedure |
888 |
Can I set the search box / filterbarprompt to invisible, so I can use my own input and *string* via VBA
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComColumnAutoResize to True Set ComContinueColumnScroll to False Set ComMarkSearchColumn to False Set ComSearchColumnIndex to 1 Set ComFilterBarHeight to 0 Set ComFilterBarPromptVisible to True Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Name" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComWidth of hoColumn to 96 Send Destroy to hoColumn Variant voColumn1 Get ComAdd of hoColumns "Title" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComWidth of hoColumn1 to 96 Send Destroy to hoColumn1 Get ComAdd of hoColumns "City" to Nothing Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h0 Get ComAddItem of hoItems "Nancy Davolio" to h0 Set ComCellCaption of hoItems h0 1 to "Sales Representative" Set ComCellCaption of hoItems h0 2 to "Seattle" Get ComAddItem of hoItems "Andrew Fuller" to h0 Set ComCellCaption of hoItems h0 1 to "Vice President, Sales" Set ComCellCaption of hoItems h0 2 to "Tacoma" Set ComSelectItem of hoItems h0 to True Get ComAddItem of hoItems "Janet Leverling" to h0 Set ComCellCaption of hoItems h0 1 to "Sales Representative" Set ComCellCaption of hoItems h0 2 to "Kirkland" Get ComAddItem of hoItems "Margaret Peacock" to h0 Set ComCellCaption of hoItems h0 1 to "Sales Representative" Set ComCellCaption of hoItems h0 2 to "Redmond" Get ComAddItem of hoItems "Steven Buchanan" to h0 Set ComCellCaption of hoItems h0 1 to "Sales Manager" Set ComCellCaption of hoItems h0 2 to "London" Get ComAddItem of hoItems "Michael Suyama" to h0 Set ComCellCaption of hoItems h0 1 to "Sales Representative" Set ComCellCaption of hoItems h0 2 to "London" Get ComAddItem of hoItems "Robert King" to h0 Set ComCellCaption of hoItems h0 1 to "Sales Representative" Set ComCellCaption of hoItems h0 2 to "London" Get ComAddItem of hoItems "Laura Callahan" to h0 Set ComCellCaption of hoItems h0 1 to "Inside Sales Coordinator" Set ComCellCaption of hoItems h0 2 to "Seattle" Get ComAddItem of hoItems "Anne Dodsworth" to h0 Set ComCellCaption of hoItems h0 1 to "Sales Representative" Set ComCellCaption of hoItems h0 2 to "London" Send Destroy to hoItems Set ComFilterBarPromptPattern to "London" Send ComEndUpdate End_Procedure |
887 |
How to load a hierarchy using the control's DataSource property (Parent-ID-Relation)
// Occurs after a new Item has been inserted to Items collection. Procedure OnComAddItem HITEM llItem Forward Send OnComAddItem llItem Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComSetParent of hoItems llItem (ComFindItem(hoItems,(ComCellCaption(hoItems,llItem,"ReportsTo")),"EmployeeID",Nothing)) Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Set ComLinesAtRoot to OLEexLinesAtRoot Set ComColumnAutoResize to False Set ComContinueColumnScroll to False Variant rs Get Comcreateobject "ADOR.Recordset" to rs Send ComOpen "SELECT * FROM Employees ORDER BY ReportsTo" "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\SAMPLE.MDB" OLEadOpenStatic OLEadLockOptimistic Nothing Set ComDataSource to rs Variant voItems1 Get ComItems to voItems1 Handle hoItems1 Get Create (RefClass(cComItems)) to hoItems1 Set pvComObject of hoItems1 to voItems1 Set ComExpandItem of hoItems1 0 to True Send Destroy to hoItems1 Send ComEndUpdate End_Procedure |
886 |
The week number is not correct. What can I do
Procedure OnCreate Forward Send OnCreate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstWeekDay of hoChart to (ComLocFirstWeekDay(hoChart)) Set ComMonthNames of hoChart to (ComLocMonthNames(hoChart)) Set ComWeekDays of hoChart to (ComLocWeekDays(hoChart)) Set ComAMPM of hoChart to (ComLocAMPM(hoChart)) Set ComLevelCount of hoChart to 2 Set ComPaneWidth of hoChart False to 0 Set ComUnitScale of hoChart to OLEexWeek Set ComUnitWidth of hoChart to 32 Set ComFirstVisibleDate of hoChart to "1/1/2016" Set ComWeekNumberAs of hoChart to OLEexISO8601WeekNumber Send ComScrollTo of hoChart (ComFirstVisibleDate(hoChart)) 1 Send Destroy to hoChart End_Procedure |
885 |
How can I display my logo on print/print-preview
// Occurs after a new Item has been inserted to Items collection. Procedure OnComAddItem HITEM llItem Forward Send OnComAddItem llItem Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems llItem "Task" (ComCellCaption(hoItems,llItem,2)) (ComCellCaption(hoItems,llItem,4)) Nothing Nothing Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComColumnAutoResize to False Set ComContinueColumnScroll to False Variant rs Get Comcreateobject "ADOR.Recordset" to rs Send ComOpen "Orders" "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb" OLEadOpenStatic OLEadLockOptimistic Nothing Set ComDataSource to rs Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstVisibleDate of hoChart to "8/4/1994" Send Destroy to hoChart Send ComEndUpdate Handle hoPrint Get Create (RefClass(cComPrint)) to hoPrint // Import the 'ExPrint 1.0 Control Library' library Set ComPageOrientation of hoPrint to OLEexLandscape Set ComHTMLPicture of hoPrint "logo" to "c:\exontrol\images\zipdisk.gif" Send ComExtraCaption of hoPrint "logo" "<img>logo</img>" 1 1 Set ComPrintExt of hoPrint to (pvComObject(Self)) Send ComPreview of hoPrint Send Destroy to hoPrint End_Procedure |
884 |
How can I align captions of items with checkbox, with items with no checkbox
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Default" to Nothing Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Set ComCellImages of hoItems (ComAddItem(hoItems,0)) 0 to "1" Set ComCellHasCheckBox of hoItems (ComAddItem(hoItems,1)) 0 to True Set ComCellImages of hoItems (ComAddItem(hoItems,2)) 0 to "1" Send Destroy to hoItems Send ComEndUpdate End_Procedure |
883 |
How do I show the chart's labels in 24-hour clock format
Procedure OnCreate Forward Send OnCreate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart False to 0 Set ComFirstVisibleDate of hoChart to "1/1/2001" Set ComLevelCount of hoChart to 3 Variant voLevel Get ComLevel of hoChart 0 to voLevel Handle hoLevel Get Create (RefClass(cComLevel)) to hoLevel Set pvComObject of hoLevel to voLevel Set ComLabel of hoLevel to "<%mmm%> <%d%>, <%yyyy%>" Set ComAlignment of hoLevel to (OLEexHOutside + OLECenterAlignment) Set ComUnit of hoLevel to OLEexDay Send Destroy to hoLevel Variant voLevel1 Get ComLevel of hoChart 1 to voLevel1 Handle hoLevel1 Get Create (RefClass(cComLevel)) to hoLevel1 Set pvComObject of hoLevel1 to voLevel1 Set ComLabel of hoLevel1 to "<b><%h%>:00</b>" Set ComAlignment of hoLevel1 to OLECenterAlignment Set ComUnit of hoLevel1 to OLEexHour Set ComDrawTickLines of hoLevel1 to True Set ComDrawGridLines of hoLevel1 to True Send Destroy to hoLevel1 Variant voLevel2 Get ComLevel of hoChart 2 to voLevel2 Handle hoLevel2 Get Create (RefClass(cComLevel)) to hoLevel2 Set pvComObject of hoLevel2 to voLevel2 Set ComLabel of hoLevel2 to "<%nn%>" Set ComUnit of hoLevel2 to OLEexMinute Set ComCount of hoLevel2 to 15 Send Destroy to hoLevel2 Send ComScrollTo of hoChart "1/1/2001 8:30:00 AM" 0 Send Destroy to hoChart End_Procedure |
882 |
How do I show the chart's labels in 12-hour clock format
Procedure OnCreate Forward Send OnCreate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart False to 0 Set ComFirstVisibleDate of hoChart to "1/1/2001" Set ComLevelCount of hoChart to 3 Variant voLevel Get ComLevel of hoChart 0 to voLevel Handle hoLevel Get Create (RefClass(cComLevel)) to hoLevel Set pvComObject of hoLevel to voLevel Set ComLabel of hoLevel to "<%mmm%> <%d%>, <%yyyy%>" Set ComAlignment of hoLevel to (OLEexHOutside + OLECenterAlignment) Set ComUnit of hoLevel to OLEexDay Send Destroy to hoLevel Variant voLevel1 Get ComLevel of hoChart 1 to voLevel1 Handle hoLevel1 Get Create (RefClass(cComLevel)) to hoLevel1 Set pvComObject of hoLevel1 to voLevel1 Set ComLabel of hoLevel1 to "<b><%h%>:00</b> <%AM/PM%>" Set ComAlignment of hoLevel1 to OLECenterAlignment Set ComUnit of hoLevel1 to OLEexHour Set ComDrawTickLines of hoLevel1 to True Set ComDrawGridLines of hoLevel1 to True Send Destroy to hoLevel1 Variant voLevel2 Get ComLevel of hoChart 2 to voLevel2 Handle hoLevel2 Get Create (RefClass(cComLevel)) to hoLevel2 Set pvComObject of hoLevel2 to voLevel2 Set ComLabel of hoLevel2 to "<%nn%>" Set ComUnit of hoLevel2 to OLEexMinute Set ComCount of hoLevel2 to 15 Send Destroy to hoLevel2 Send ComScrollTo of hoChart "1/1/2001 8:30:00 AM" 0 Send Destroy to hoChart End_Procedure |
881 |
The control does not ensure the item to fit the control's client area once the user clicks the cell's button or check box. What can be done
|
880 |
Do you have any Fit-To-Page options when printing the control (W x T, Fit-To )
// Occurs after a new Item has been inserted to Items collection. Procedure OnComAddItem HITEM llItem Forward Send OnComAddItem llItem Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems llItem "Task" (ComCellCaption(hoItems,llItem,2)) (ComCellCaption(hoItems,llItem,4)) Nothing Nothing Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComColumnAutoResize to False Set ComContinueColumnScroll to False Variant rs Get Comcreateobject "ADOR.Recordset" to rs Send ComOpen "Orders" "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb" OLEadOpenStatic OLEadLockOptimistic Nothing Set ComDataSource to rs Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstVisibleDate of hoChart to "8/4/1994" Send Destroy to hoChart Send ComEndUpdate Handle hoPrint Get Create (RefClass(cComPrint)) to hoPrint // Import the 'ExPrint 1.0 Control Library' library Set ComOptions of hoPrint to "FitToPage =1 x 2" Set ComPrintExt of hoPrint to (pvComObject(Self)) Send ComPreview of hoPrint Send Destroy to hoPrint End_Procedure |
879 |
Do you have any Fit-To-Page options when printing the control ( x T, Fit-To Tall )
// Occurs after a new Item has been inserted to Items collection. Procedure OnComAddItem HITEM llItem Forward Send OnComAddItem llItem Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems llItem "Task" (ComCellCaption(hoItems,llItem,2)) (ComCellCaption(hoItems,llItem,4)) Nothing Nothing Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComColumnAutoResize to False Set ComContinueColumnScroll to False Variant rs Get Comcreateobject "ADOR.Recordset" to rs Send ComOpen "Orders" "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb" OLEadOpenStatic OLEadLockOptimistic Nothing Set ComDataSource to rs Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstVisibleDate of hoChart to "8/4/1994" Send Destroy to hoChart Send ComEndUpdate Handle hoPrint Get Create (RefClass(cComPrint)) to hoPrint // Import the 'ExPrint 1.0 Control Library' library Set ComOptions of hoPrint to "FitToPage = x 2" Set ComPrintExt of hoPrint to (pvComObject(Self)) Send ComPreview of hoPrint Send Destroy to hoPrint End_Procedure |
878 |
Do you have any Fit-To-Page options when printing the control ( W x, Fit-To Wide )
// Occurs after a new Item has been inserted to Items collection. Procedure OnComAddItem HITEM llItem Forward Send OnComAddItem llItem Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems llItem "Task" (ComCellCaption(hoItems,llItem,2)) (ComCellCaption(hoItems,llItem,4)) Nothing Nothing Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComColumnAutoResize to False Set ComContinueColumnScroll to False Variant rs Get Comcreateobject "ADOR.Recordset" to rs Send ComOpen "Orders" "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb" OLEadOpenStatic OLEadLockOptimistic Nothing Set ComDataSource to rs Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstVisibleDate of hoChart to "8/4/1994" Send Destroy to hoChart Send ComEndUpdate Handle hoPrint Get Create (RefClass(cComPrint)) to hoPrint // Import the 'ExPrint 1.0 Control Library' library Set ComOptions of hoPrint to "FitToPage = 2 x" Set ComPrintExt of hoPrint to (pvComObject(Self)) Send ComPreview of hoPrint Send Destroy to hoPrint End_Procedure |
877 |
Do you have any Fit-To-Page options when printing the control ( percent view, Adjust-To )
// Occurs after a new Item has been inserted to Items collection. Procedure OnComAddItem HITEM llItem Forward Send OnComAddItem llItem Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems llItem "Task" (ComCellCaption(hoItems,llItem,2)) (ComCellCaption(hoItems,llItem,4)) Nothing Nothing Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComColumnAutoResize to False Set ComContinueColumnScroll to False Variant rs Get Comcreateobject "ADOR.Recordset" to rs Send ComOpen "Orders" "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb" OLEadOpenStatic OLEadLockOptimistic Nothing Set ComDataSource to rs Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstVisibleDate of hoChart to "8/4/1994" Send Destroy to hoChart Send ComEndUpdate Handle hoPrint Get Create (RefClass(cComPrint)) to hoPrint // Import the 'ExPrint 1.0 Control Library' library Set ComOptions of hoPrint to "FitToPage = 50%" Set ComPrintExt of hoPrint to (pvComObject(Self)) Send ComPreview of hoPrint Send Destroy to hoPrint End_Procedure |
876 |
Does the title of the cell's tooltip supports HTML format
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComCaption of hoColumn to "" Set ComHTMLCaption of hoColumn to "Column" Send Destroy to hoColumn Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Set ComCellToolTip of hoItems (ComAddItem(hoItems,"tooltip w/h different title")) 0 to "<c><b><fgcolor=FF0000>Title</fgcolor></b><br>This is bit of text that's shown when the user hovers the cell. This shows the title centered with a different color." Send Destroy to hoItems Send ComEndUpdate End_Procedure |
875 |
How do I specify a different title for the cell's tooltip
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComCaption of hoColumn to "This is the title" Set ComHTMLCaption of hoColumn to "Column" Send Destroy to hoColumn Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Set ComCellToolTip of hoItems (ComAddItem(hoItems,"tooltip w/h different title")) 0 to "This is bit of text that's shown when the user hovers the cell." Send Destroy to hoItems Send ComEndUpdate End_Procedure |
874 |
The cell's tooltip displays the column's caption in its title. How can I get ride of that
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "C1" to Nothing Get ComAdd of hoColumns "C2" to Nothing Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComAddItem of hoItems "tooltip w/h caption" to h Set ComCellToolTip of hoItems h 0 to "This is bit of text that's shown when the user hovers the cell. This shows the column's caption in the title." Set ComCellCaption of hoItems h 1 to "tooltip no caption" Set ComCellToolTip of hoItems h 1 to "This is bit of text that's shown when the user hovers the cell. This shows no column's caption in the title." Send Destroy to hoItems Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Variant voColumn Get ComItem of hoColumns1 "C2" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComHTMLCaption of hoColumn to (ComCaption(hoColumn)) Set ComCaption of hoColumn to "" Send Destroy to hoColumn Send Destroy to hoColumns1 Send ComEndUpdate End_Procedure |
873 |
How can I programmatically show the column's filter
// Fired when right mouse button is clicked Procedure OnComRClick Forward Send OnComRClick Variant i Get ComItemFromPoint -1 -1 c hit to i Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComItem of hoColumns c to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Send ComShowFilter of hoColumn "-1,-1,128,128" Send Destroy to hoColumn Send Destroy to hoColumns End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComShowFocusRect to False Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Variant voColumn1 Get ComAdd of hoColumns1 "Items " to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComDisplayFilterPattern of hoColumn1 to False Set ComFilterList of hoColumn1 to (OLEexShowExclude + OLEexShowFocusItem + OLEexShowCheckBox) Send Destroy to hoColumn1 Send Destroy to hoColumns1 Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Get ComAddItem of hoItems "Item 1" to Nothing Get ComAddItem of hoItems "Item 2" to Nothing Get ComAddItem of hoItems "Item 3" to Nothing Send Destroy to hoItems Send ComEndUpdate End_Procedure |
872 |
I want to be able to click on one of the headers, and sort by other column. How can I do that (method 2)
// Fired after the user clicks on column's header. Procedure OnComColumnClick Variant llColumn Forward Send OnComColumnClick llColumn // Column.SortOrder = 1 Set ComSortOnClick to OLEexDefaultSort Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComItem of hoColumns "Sort" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComSortOrder of hoColumn to OLESortAscending Send Destroy to hoColumn Send Destroy to hoColumns Set ComSortOnClick to OLEexUserSort End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComMarkSearchColumn to False Set ComSortOnClick to OLEexUserSort Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Get ComAdd of hoColumns1 "Items" to Nothing Send Destroy to hoColumns1 Variant voColumns2 Get ComColumns to voColumns2 Handle hoColumns2 Get Create (RefClass(cComColumns)) to hoColumns2 Set pvComObject of hoColumns2 to voColumns2 Variant voColumn1 Get ComAdd of hoColumns2 "Sort" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComVisible of hoColumn1 to False Send Destroy to hoColumn1 Send Destroy to hoColumns2 Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Set ComCellCaption of hoItems (ComAddItem(hoItems,"Item 1 (3)")) 1 to 3 Set ComCellCaption of hoItems (ComAddItem(hoItems,"Item 2 (1)")) 1 to 1 Set ComCellCaption of hoItems (ComAddItem(hoItems,"Item 3 (2)")) 1 to 2 Send Destroy to hoItems Send ComEndUpdate End_Procedure |
871 |
I want to be able to click on one of the headers, and sort by other column. How can I do that (method 1)
// Fired after the user clicks on column's header. Procedure OnComColumnClick Variant llColumn Forward Send OnComColumnClick llColumn // Column.SortOrder = 1 Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComSortChildren of hoItems 0 "Sort" True Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComMarkSearchColumn to False Set ComSortOnClick to OLEexUserSort Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Items" to Nothing Send Destroy to hoColumns Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Variant voColumn Get ComAdd of hoColumns1 "Sort" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComVisible of hoColumn to False Send Destroy to hoColumn Send Destroy to hoColumns1 Variant voItems1 Get ComItems to voItems1 Handle hoItems1 Get Create (RefClass(cComItems)) to hoItems1 Set pvComObject of hoItems1 to voItems1 Set ComCellCaption of hoItems1 (ComAddItem(hoItems1,"Item 1 (3)")) 1 to 3 Set ComCellCaption of hoItems1 (ComAddItem(hoItems1,"Item 2 (1)")) 1 to 1 Set ComCellCaption of hoItems1 (ComAddItem(hoItems1,"Item 3 (2)")) 1 to 2 Send Destroy to hoItems1 Send ComEndUpdate End_Procedure |
870 |
How can I sort by two-columns, one by date and one by time
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComSingleSort to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Index" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComFormatColumn of hoColumn to "1 index ``" Send Destroy to hoColumn Variant voColumn1 Get ComAdd of hoColumns "Date" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComSortType of hoColumn1 to OLESortDate Send Destroy to hoColumn1 Variant voColumn2 Get ComAdd of hoColumns "Time" to voColumn2 Handle hoColumn2 Get Create (RefClass(cComColumn)) to hoColumn2 Set pvComObject of hoColumn2 to voColumn2 Set ComSortType of hoColumn2 to OLESortTime Set ComFormatColumn of hoColumn2 to "time(value)" Send Destroy to hoColumn2 Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComAddItem of hoItems 0 to h Set ComCellCaption of hoItems h 1 to "1/1/2001" Set ComCellCaption of hoItems h 2 to "1/1/2001 10:00:00 AM" Get ComAddItem of hoItems 0 to h Set ComCellCaption of hoItems h 1 to "12/31/2000" Set ComCellCaption of hoItems h 2 to "1/1/2001 10:00:00 AM" Get ComAddItem of hoItems 0 to h Set ComCellCaption of hoItems h 1 to "1/1/2001" Set ComCellCaption of hoItems h 2 to "1/1/2001 6:00:00 AM" Get ComAddItem of hoItems 0 to h Set ComCellCaption of hoItems h 1 to "12/31/2000" Set ComCellCaption of hoItems h 2 to "1/1/2001 8:00:00 AM" Get ComAddItem of hoItems 0 to h Set ComCellCaption of hoItems h 1 to "1/1/2001" Set ComCellCaption of hoItems h 2 to "1/1/2001 8:00:00 AM" Get ComAddItem of hoItems 0 to h Set ComCellCaption of hoItems h 1 to "12/31/2000" Set ComCellCaption of hoItems h 2 to "1/1/2001 6:00:00 AM" Send Destroy to hoItems Set ComLayout to "multiplesort="C1:1 C2:1"" Send ComEndUpdate End_Procedure |
869 |
How can I connect to a DBF file
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComColumnAutoResize to False Set ComContinueColumnScroll to False Variant rs Get Comcreateobject "ADODB.Recordset" to rs Send ComOpen "Select * From foxcode.DBF" "Provider=vfpoledb;Data Source=C:\Program Files\Microsoft Visual FoxPro 9\" OLEadOpenStatic OLEadLockOptimistic Nothing Set ComDataSource to rs Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Send ComEndUpdate End_Procedure |
868 |
How can I change the bar's color based on values on the columns
// Occurs after a new Item has been inserted to Items collection. Procedure OnComAddItem HITEM llItem Forward Send OnComAddItem llItem Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems llItem "Task" (ComCellCaption(hoItems,llItem,2)) (ComCellCaption(hoItems,llItem,4)) Nothing Nothing Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstVisibleDate of hoChart to "8/3/1994" Set ComPaneWidth of hoChart False to 256 Set ComLevelCount of hoChart to 2 Set ComUnitScale of hoChart to OLEexDay Set ComFirstWeekDay of hoChart to OLEexMonday Set ComOverviewVisible of hoChart to OLEexOverviewShowAll Send Destroy to hoChart Set ComColumnAutoResize to False Set ComContinueColumnScroll to False Variant rs Get Comcreateobject "ADOR.Recordset" to rs Send ComOpen "Orders" "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb" OLEadOpenStatic OLEadLockOptimistic Nothing Set ComDataSource to rs Variant voConditionalFormats Get ComConditionalFormats to voConditionalFormats Handle hoConditionalFormats Get Create (RefClass(cComConditionalFormats)) to hoConditionalFormats Set pvComObject of hoConditionalFormats to voConditionalFormats Variant voConditionalFormat Get ComAdd of hoConditionalFormats "1" Nothing to voConditionalFormat Handle hoConditionalFormat Get Create (RefClass(cComConditionalFormat)) to hoConditionalFormat Set pvComObject of hoConditionalFormat to voConditionalFormat Set ComApplyTo of hoConditionalFormat to |CI$1 Set ComBold of hoConditionalFormat to True Set ComBackColor of hoConditionalFormat to (RGB(250,250,250)) Send Destroy to hoConditionalFormat Variant voConditionalFormat1 Get ComAdd of hoConditionalFormats "%1 = 5" Nothing to voConditionalFormat1 Handle hoConditionalFormat1 Get Create (RefClass(cComConditionalFormat)) to hoConditionalFormat1 Set pvComObject of hoConditionalFormat1 to voConditionalFormat1 Set ComApplyToBars of hoConditionalFormat1 to "Task" Set ComBarColor of hoConditionalFormat1 to (RGB(255,0,0)) Set ComForeColor of hoConditionalFormat1 to (RGB(255,0,0)) Set ComBarOverviewColor of hoConditionalFormat1 to (RGB(255,0,0)) Send Destroy to hoConditionalFormat1 Variant voConditionalFormat2 Get ComAdd of hoConditionalFormats "%1 = 3" Nothing to voConditionalFormat2 Handle hoConditionalFormat2 Get Create (RefClass(cComConditionalFormat)) to hoConditionalFormat2 Set pvComObject of hoConditionalFormat2 to voConditionalFormat2 Set ComApplyToBars of hoConditionalFormat2 to "Task" Set ComBarColor of hoConditionalFormat2 to (RGB(0,255,0)) Set ComForeColor of hoConditionalFormat2 to (RGB(0,255,0)) Set ComBarOverviewColor of hoConditionalFormat2 to (RGB(0,255,0)) Send Destroy to hoConditionalFormat2 Send Destroy to hoConditionalFormats Send ComEndUpdate End_Procedure |
867 |
Does your control supports scrolling by touching the screen
// Occurs after a new Item has been inserted to Items collection. Procedure OnComAddItem HITEM llItem Forward Send OnComAddItem llItem Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems llItem "Task" (ComCellCaption(hoItems,llItem,2)) (ComCellCaption(hoItems,llItem,4)) Nothing Nothing Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstVisibleDate of hoChart to "8/3/1994" Set ComPaneWidth of hoChart False to 256 Set ComLevelCount of hoChart to 2 Set ComUnitScale of hoChart to OLEexDay Set ComFirstWeekDay of hoChart to OLEexMonday Set ComOverviewVisible of hoChart to OLEexOverviewShowAll Send Destroy to hoChart Set ComColumnAutoResize to False Set ComContinueColumnScroll to False Variant rs Get Comcreateobject "ADOR.Recordset" to rs Send ComOpen "Orders" "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb" OLEadOpenStatic OLEadLockOptimistic Nothing Set ComDataSource to rs Set ComContinueColumnScroll to True Set ComScrollBySingleLine to True Set ComAutoDrag to (OLEexAutoDragScrollOnShortTouch + OLEexAutoDragScroll) Send ComEndUpdate End_Procedure |
866 |
How can I export the control's content to a PDF document (method 1)
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComMarkSearchColumn to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Tasks" to Nothing Send Destroy to hoColumns Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart False to 196 Set ComLevelCount of hoChart to 2 Set ComShowEmptyBars of hoChart to 1 Set ComFirstVisibleDate of hoChart to "1/1/2009" Send Destroy to hoChart Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems (ComAddItem(hoItems,"Task 1")) "Task" "1/2/2009" "1/7/2009" Nothing Nothing Send ComAddBar of hoItems (ComAddItem(hoItems,"Task 2")) "Task" "1/4/2009" "1/9/2009" Nothing Nothing Send Destroy to hoItems Handle hoPrint Get Create (RefClass(cComPrint)) to hoPrint // Import the 'ExPrint 1.0 Control Library' library Set ComPrintExt of hoPrint to (pvComObject(Self)) Get ComCopyTo of hoPrint "c:/temp/xtest.pdf" to Nothing Send Destroy to hoPrint Showln "Look for C:\Temp\xtest.pdf file." Send ComEndUpdate End_Procedure |
865 |
How can I export the control's content to a PDF document (method 2)
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComMarkSearchColumn to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Tasks" to Nothing Send Destroy to hoColumns Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart False to 196 Set ComLevelCount of hoChart to 2 Set ComShowEmptyBars of hoChart to 1 Set ComFirstVisibleDate of hoChart to "1/1/2009" Send Destroy to hoChart Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems (ComAddItem(hoItems,"Task 1")) "Task" "1/2/2009" "1/7/2009" Nothing Nothing Send ComAddBar of hoItems (ComAddItem(hoItems,"Task 2")) "Task" "1/4/2009" "1/9/2009" Nothing Nothing Send Destroy to hoItems Variant var_CopyTo Get ComCopyTo "c:/temp/xtest.pdf" to var_CopyTo Showln "Look for C:\Temp\xtest.pdf file." Send ComEndUpdate End_Procedure |
864 |
Is there a syntax for conditional formatting of items, based on CellState/CellStateChange
// Fired after cell's state has been changed. Procedure OnComCellStateChanged HITEM llItem Integer llColIndex Forward Send OnComCellStateChanged llItem llColIndex Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Set ComCellCaption of hoItems llItem 2 to (ComCellState(hoItems,llItem,0)) Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComShowFocusRect to False Set ComSelBackMode to OLEexTransparent Variant v Variant voConditionalFormats Get ComConditionalFormats to voConditionalFormats Handle hoConditionalFormats Get Create (RefClass(cComConditionalFormats)) to hoConditionalFormats Set pvComObject of hoConditionalFormats to voConditionalFormats Get ComAdd of hoConditionalFormats "%2 != 0" Nothing to v Send Destroy to hoConditionalFormats Variant var_ConditionalFormat Move v to var_ConditionalFormat Set ComBold to True Set ComForeColor to (RGB(255,0,0)) Set ComApplyTo to OLEexFormatToItems Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDef of hoColumn OLEexCellHasCheckBox to True Set ComWidth of hoColumn to 16 Set ComAllowSizing of hoColumn to False Send Destroy to hoColumn Send Destroy to hoColumns Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Get ComAdd of hoColumns1 "Information" to Nothing Send Destroy to hoColumns1 Variant voColumns2 Get ComColumns to voColumns2 Handle hoColumns2 Get Create (RefClass(cComColumns)) to hoColumns2 Set pvComObject of hoColumns2 to voColumns2 Variant voColumn1 Get ComAdd of hoColumns2 "Hidden" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComVisible of hoColumn1 to False Send Destroy to hoColumn1 Send Destroy to hoColumns2 Variant voItems1 Get ComItems to voItems1 Handle hoItems1 Get Create (RefClass(cComItems)) to hoItems1 Set pvComObject of hoItems1 to voItems1 Set ComCellCaption of hoItems1 (ComAddItem(hoItems1,"")) 1 to "This is a bit of text associated" Variant h Get ComAddItem of hoItems1 "" to h Set ComCellCaption of hoItems1 h 1 to "This is a bit of text associated" Set ComCellState of hoItems1 h 0 to 1 Set ComCellCaption of hoItems1 (ComAddItem(hoItems1,"")) 1 to "This is a bit of text associated" Send Destroy to hoItems1 Send ComEndUpdate End_Procedure |
863 |
How can I use no scroll bars for touch-screens
// Occurs after a new Item has been inserted to Items collection. Procedure OnComAddItem HITEM llItem Forward Send OnComAddItem llItem Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems llItem "Task" (ComCellCaption(hoItems,llItem,2)) (ComCellCaption(hoItems,llItem,4)) Nothing Nothing Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstVisibleDate of hoChart to "8/3/1994" Set ComPaneWidth of hoChart False to 256 Set ComLevelCount of hoChart to 2 Set ComUnitScale of hoChart to OLEexDay Set ComFirstWeekDay of hoChart to OLEexMonday Set ComOverviewVisible of hoChart to OLEexOverviewShowAll Send Destroy to hoChart Set ComColumnAutoResize to False Set ComContinueColumnScroll to False Variant rs Get Comcreateobject "ADOR.Recordset" to rs Send ComOpen "Orders" "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb" OLEadOpenStatic OLEadLockOptimistic Nothing Set ComDataSource to rs Set ComAutoDrag to OLEexAutoDragScroll Set ComScrollWidth to 4 Set ComScrollHeight to 4 Set ComBackground OLEexHSLeft to (RGB(192,192,192)) Set ComBackground OLEexHSRight to (RGB(192,192,192)) Set ComBackground OLEexHSBack to (RGB(224,224,224)) Set ComBackground OLEexHSThumb to (RGB(128,128,128)) Set ComBackground OLEexVSBack to (RGB(224,224,224)) Set ComBackground OLEexVSDown to (RGB(192,192,192)) Set ComBackground OLEexVSThumb to (RGB(128,128,128)) Set ComBackground OLEexVSUp to (RGB(192,192,192)) Set ComScrollButtonWidth to 0 Set ComScrollButtonHeight to 0 Send ComEndUpdate End_Procedure |
862 |
How can I print the selected items only
// Occurs after a new Item has been inserted to Items collection. Procedure OnComAddItem HITEM llItem Forward Send OnComAddItem llItem Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems llItem "Task" (ComCellCaption(hoItems,llItem,2)) (ComCellCaption(hoItems,llItem,4)) Nothing Nothing Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComSingleSel to False Set ComColumnAutoResize to False Set ComContinueColumnScroll to False Variant rs Get Comcreateobject "ADOR.Recordset" to rs Send ComOpen "Orders" "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb" OLEadOpenStatic OLEadLockOptimistic Nothing Set ComDataSource to rs Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstVisibleDate of hoChart to "8/4/1994" Send Destroy to hoChart Variant voItems1 Get ComItems to voItems1 Handle hoItems1 Get Create (RefClass(cComItems)) to hoItems1 Set pvComObject of hoItems1 to voItems1 Set ComSelectItem of hoItems1 (ComItemByIndex(hoItems1,0)) to True Set ComSelectItem of hoItems1 (ComItemByIndex(hoItems1,2)) to True Set ComSelectItem of hoItems1 (ComItemByIndex(hoItems1,4)) to True Send Destroy to hoItems1 Send ComEndUpdate Handle hoPrint Get Create (RefClass(cComPrint)) to hoPrint // Import the 'ExPrint 1.0 Control Library' library Set ComOptions of hoPrint to "Print = Selection" Set ComPrintExt of hoPrint to (pvComObject(Self)) Send ComPreview of hoPrint Send Destroy to hoPrint End_Procedure |
861 |
How can I sort the columns to be displayed on the columns floating bar
Procedure OnCreate Forward Send OnCreate Set ComColumnAutoResize to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "City" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComVisible of hoColumn to False Send Destroy to hoColumn Variant voColumn1 Get ComAdd of hoColumns "Start" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComVisible of hoColumn1 to False Send Destroy to hoColumn1 Variant voColumn2 Get ComAdd of hoColumns "End" to voColumn2 Handle hoColumn2 Get Create (RefClass(cComColumn)) to hoColumn2 Set pvComObject of hoColumn2 to voColumn2 Set ComVisible of hoColumn2 to False Send Destroy to hoColumn2 Send Destroy to hoColumns Set ComColumnsFloatBarVisible to True Set ComColumnsFloatBarSortOrder to OLESortAscending End_Procedure |
860 |
How can I add a vertical padding
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComDrawGridLines to OLEexAllLines Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Padding" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDef of hoColumn OLEexCellHasCheckBox to True Set ComDef of hoColumn OLEexCellSingleLine to False Set ComDef of hoColumn OLEexCellPaddingLeft to 6 Set ComDef of hoColumn OLEexCellPaddingRight to 6 Set ComDef of hoColumn OLEexCellPaddingTop to 6 Set ComDef of hoColumn OLEexCellPaddingBottom to 6 Send Destroy to hoColumn Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Get ComAddItem of hoItems "padding" to Nothing Get ComAddItem of hoItems "padding" to Nothing Send Destroy to hoItems Send ComEndUpdate End_Procedure |
859 |
How do you embed HTML options into the anchor click string
|
858 |
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 3)
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voAppearance Get ComVisualAppearance to voAppearance Handle hoAppearance Get Create (RefClass(cComAppearance)) to hoAppearance Set pvComObject of hoAppearance to voAppearance Get ComAdd of hoAppearance 1 "gBFLBCJwBAEHhEJAEGg4BVEIQAAYAQGKIYBkAKBQAGaAoDDMOQwQwAAxjGKEEwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQCWIAzATGYBRfIUEgjBM6ExwG78egBHp/ZpkACIJJAaRjHQdJxGKKMQB9DIhCZpeKhWgkKIJBzOEyBRC4ERBGqNGrsIgLEqWZpnWhaNpWXYTLyBN64LhuK46g53O6wLxvK6hEr2dJ/YBcIAOfghf4NQ7EMRxLC8Mw3BDvYDkOAABAIgI=" to Nothing Send Destroy to hoAppearance Set ComSelBackColor to |CI$1fffffe Set ComShowFocusRect to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Items" to Nothing Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Set ComItemBackColor of hoItems (ComAddItem(hoItems,"red")) to (RGB(255,0,0)) Set ComItemBackColor of hoItems (ComAddItem(hoItems,"blue")) to (RGB(0,0,255)) Set ComItemBackColor of hoItems (ComAddItem(hoItems,"green")) to (RGB(0,255,0)) Send Destroy to hoItems Send ComEndUpdate End_Procedure |
857 |
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 2)
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComSelBackMode to OLEexTransparent Set ComShowFocusRect to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Items" to Nothing Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Set ComItemBackColor of hoItems (ComAddItem(hoItems,"red")) to (RGB(255,0,0)) Set ComItemBackColor of hoItems (ComAddItem(hoItems,"blue")) to (RGB(0,0,255)) Set ComItemBackColor of hoItems (ComAddItem(hoItems,"green")) to (RGB(0,255,0)) Send Destroy to hoItems Send ComEndUpdate End_Procedure |
856 |
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 1)
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComSelBackColor to (ComBackColor(Self)) Set ComSelForeColor to (ComForeColor(Self)) Set ComShowFocusRect to True Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Items" to Nothing Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Set ComItemBackColor of hoItems (ComAddItem(hoItems,"red")) to (RGB(255,0,0)) Set ComItemBackColor of hoItems (ComAddItem(hoItems,"blue")) to (RGB(0,0,255)) Set ComItemBackColor of hoItems (ComAddItem(hoItems,"green")) to (RGB(0,255,0)) Send Destroy to hoItems Send ComEndUpdate End_Procedure |
855 |
Do you have any Fit-To-Page options when printing the control
// Occurs after a new Item has been inserted to Items collection. Procedure OnComAddItem HITEM llItem Forward Send OnComAddItem llItem Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems llItem "Task" (ComCellCaption(hoItems,llItem,2)) (ComCellCaption(hoItems,llItem,4)) Nothing Nothing Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComColumnAutoResize to False Set ComContinueColumnScroll to False Variant rs Get Comcreateobject "ADOR.Recordset" to rs Send ComOpen "Orders" "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb" OLEadOpenStatic OLEadLockOptimistic Nothing Set ComDataSource to rs Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstVisibleDate of hoChart to "8/4/1994" Send Destroy to hoChart Send ComEndUpdate Handle hoPrint Get Create (RefClass(cComPrint)) to hoPrint // Import the 'ExPrint 1.0 Control Library' library Set ComOptions of hoPrint to "FitToPage = On" Set ComPrintExt of hoPrint to (pvComObject(Self)) Send ComPreview of hoPrint Send Destroy to hoPrint End_Procedure |
854 |
How can I add a footer row
Procedure OnCreate Forward Send OnCreate Set ComShowLockedItems to True Set ComDrawGridLines to OLEexVLines Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "C1" to Nothing Send Destroy to hoColumns Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Get ComAdd of hoColumns1 "C2" to Nothing Send Destroy to hoColumns1 Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Set ComLockedItemCount of hoItems OLEBottomAlignment to 1 Variant h Get ComLockedItem of hoItems OLEBottomAlignment 0 to h Set ComItemBackColor of hoItems h to (RGB(128,128,128)) Set ComItemForeColor of hoItems h to (RGB(255,255,255)) Set ComCellCaption of hoItems h 0 to "footer c1" Set ComCellCaption of hoItems h 1 to "footer c2" Set ComCellCaption of hoItems (ComAddItem(hoItems,"cell")) 1 to "cell" Send Destroy to hoItems End_Procedure |
853 |
How can I add a header row
Procedure OnCreate Forward Send OnCreate Set ComShowLockedItems to True Set ComDrawGridLines to OLEexVLines Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "C1" to Nothing Send Destroy to hoColumns Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Get ComAdd of hoColumns1 "C2" to Nothing Send Destroy to hoColumns1 Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Set ComLockedItemCount of hoItems OLETopAlignment to 1 Variant h Get ComLockedItem of hoItems OLETopAlignment 0 to h Set ComItemBackColor of hoItems h to (RGB(128,128,128)) Set ComItemForeColor of hoItems h to (RGB(255,255,255)) Set ComCellCaption of hoItems h 0 to "footer c1" Set ComCellCaption of hoItems h 1 to "footer c2" Set ComCellCaption of hoItems (ComAddItem(hoItems,"cell")) 1 to "cell" Send Destroy to hoItems End_Procedure |
852 |
How can I programmatically add more columns to the sort bar and other to be sorted, but not included in the sort bar
|
851 |
How can I fix a column, while other sizable and fill the control's client
Procedure OnCreate Forward Send OnCreate Set ComColumnAutoResize to True Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Sizable" to Nothing Send Destroy to hoColumns Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Variant voColumn Get ComAdd of hoColumns1 "F" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComAllowSizing of hoColumn to False Set ComWidth of hoColumn to 16 Send Destroy to hoColumn Send Destroy to hoColumns1 End_Procedure |
850 |
When I'm trying to show string with "line break" character (vbCrLF) in a textbox, it shows 2 squares. Is there any way to hide these squares
Procedure OnCreate Forward Send OnCreate Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Value" to Nothing Variant voColumn Get ComAdd of hoColumns "CellSingleLine = False" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComComputedField of hoColumn to "%0" Set ComDef of hoColumn OLEexCellSingleLine to False Send Destroy to hoColumn Variant voColumn1 Get ComAdd of hoColumns "FormatColumn/replace CRLF" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComComputedField of hoColumn1 to "%0" Set ComFormatColumn of hoColumn1 to "value replace `\r\n` with ``" Send Destroy to hoColumn1 Variant voColumn2 Get ComAdd of hoColumns "FormatColumn/replace TAB,CRLF" to voColumn2 Handle hoColumn2 Get Create (RefClass(cComColumn)) to hoColumn2 Set pvComObject of hoColumn2 to voColumn2 Set ComComputedField of hoColumn2 to "%0" Set ComFormatColumn of hoColumn2 to "(value replace `\t` with ``) replace `\r\n` with ``" Send Destroy to hoColumn2 Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Get ComAddItem of hoItems "a\ta\r\nb\tb" to Nothing Send Destroy to hoItems End_Procedure |
849 |
Is there any way to "unselect" radio group
// Occurs when the user dblclk the left mouse button over an object. Procedure OnComDblClick Short llShift OLE_XPOS_PIXELS llX OLE_YPOS_PIXELS llY Forward Send OnComDblClick llShift llX llY Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComCellChecked of hoItems 1234 to h Set ComCellHasCheckBox of hoItems 0 h to True Set ComCellState of hoItems 0 h to 0 Set ComCellHasCheckBox of hoItems 0 h to False Send Destroy to hoItems End_Procedure // Fired after a new item has been selected. Procedure OnComSelectionChanged Forward Send OnComSelectionChanged Variant voItems1 Get ComItems to voItems1 Handle hoItems1 Get Create (RefClass(cComItems)) to hoItems1 Set pvComObject of hoItems1 to voItems1 Set ComCellState of hoItems1 (ComFocusItem(hoItems1)) 0 to 1 Send Destroy to hoItems1 End_Procedure Procedure OnCreate Forward Send OnCreate Set ComMarkSearchColumn to False Set ComSelBackColor to (RGB(255,255,128)) Set ComSelForeColor to (RGB(0,0,0)) Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Default" to Nothing Send Destroy to hoColumns Variant voItems2 Get ComItems to voItems2 Handle hoItems2 Get Create (RefClass(cComItems)) to hoItems2 Set pvComObject of hoItems2 to voItems2 Get ComAddItem of hoItems2 "Radio 1" to h Set ComCellHasRadioButton of hoItems2 h 0 to True Set ComCellRadioGroup of hoItems2 h 0 to 1234 Get ComAddItem of hoItems2 "Radio 2" to h Set ComCellHasRadioButton of hoItems2 h 0 to True Set ComCellRadioGroup of hoItems2 h 0 to 1234 Set ComCellState of hoItems2 h 0 to 1 Get ComAddItem of hoItems2 "Radio 3" to h Set ComCellHasRadioButton of hoItems2 h 0 to True Set ComCellRadioGroup of hoItems2 h 0 to 1234 Send Destroy to hoItems2 End_Procedure |
848 |
The Column.Alignment property does not seem to work for cells with images in them. What can be done
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Send ComImages "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=" Set ComTreeColumnIndex to -1 Set ComDrawGridLines to OLEexAllLines Set ComHeaderHeight to 24 Set ComDefaultItemHeight to 24 Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Image" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComAllowSizing of hoColumn to False Set ComWidth of hoColumn to 32 Set ComHTMLCaption of hoColumn to "<img>1</img>" Set ComHeaderAlignment of hoColumn to OLECenterAlignment Set ComAlignment of hoColumn to OLECenterAlignment Set ComDef of hoColumn OLEexCellCaptionFormat to 1 Send Destroy to hoColumn Send Destroy to hoColumns Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Get ComAdd of hoColumns1 "Rest" to Nothing Send Destroy to hoColumns1 Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Get ComAddItem of hoItems "<img>1</img>" to Nothing Get ComAddItem of hoItems "<img>2</img>" to Nothing Get ComAddItem of hoItems "<img>3</img>" to Nothing Send Destroy to hoItems Send ComEndUpdate End_Procedure |
847 |
Does your control support subscript or superscript, in HTML captions
Procedure OnCreate Forward Send OnCreate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstVisibleDate of hoChart to "1/1/2001" Set ComPaneWidth of hoChart False to 64 Send Destroy to hoChart Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Column" to Nothing Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComAddItem of hoItems "Item 1" to h Send ComAddBar of hoItems h "Task" "1/2/2001" "1/4/2001" "" Nothing Set ComItemBar of hoItems h "" OLEexBarCaption to "<sha ;;0>Event <b><font ;6><off -6>2<off 4>3<off 4>1" Set ComItemBar of hoItems h "" OLEexBarHAlignCaption to 18 Send Destroy to hoItems End_Procedure |
846 |
How do I arrange my columns on multiple levels
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComColumnAutoResize to False Set ComDrawGridLines to OLEexAllLines Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "C0" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComExpandColumns of hoColumn to "1,2" Set ComDisplayExpandButton of hoColumn to False Send Destroy to hoColumn Get ComAdd of hoColumns "C1" to Nothing Get ComAdd of hoColumns "C2" to Nothing Get ComAdd of hoColumns "C3" to Nothing Variant voColumn1 Get ComAdd of hoColumns "C4" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComExpandColumns of hoColumn1 to "5,6" Set ComDisplayExpandButton of hoColumn1 to False Send Destroy to hoColumn1 Get ComAdd of hoColumns "C5" to Nothing Variant voColumn2 Get ComAdd of hoColumns "C6" to voColumn2 Handle hoColumn2 Get Create (RefClass(cComColumn)) to hoColumn2 Set pvComObject of hoColumn2 to voColumn2 Set ComExpandColumns of hoColumn2 to "6,7" Set ComDisplayExpandButton of hoColumn2 to False Send Destroy to hoColumn2 Get ComAdd of hoColumns "C7" to Nothing Send Destroy to hoColumns Send ComEndUpdate End_Procedure |
845 |
Does your control support expandable header or columns, so I can arrange it on multiple levels
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComDrawGridLines to OLEexAllLines Set ComBackColorLevelHeader to (RGB(240,240,240)) Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Photo" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComAllowSizing of hoColumn to False Set ComWidth of hoColumn to 32 Send Destroy to hoColumn Get ComAdd of hoColumns "Personal Info" to Nothing Get ComAdd of hoColumns "Title" to Nothing Get ComAdd of hoColumns "Name" to Nothing Get ComAdd of hoColumns "First" to Nothing Get ComAdd of hoColumns "Last" to Nothing Get ComAdd of hoColumns "Address" to Nothing Variant voColumn1 Get ComItem of hoColumns "Personal Info" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComExpandColumns of hoColumn1 to "2,3" Send Destroy to hoColumn1 Variant voColumn2 Get ComItem of hoColumns "Name" to voColumn2 Handle hoColumn2 Get Create (RefClass(cComColumn)) to hoColumn2 Set pvComObject of hoColumn2 to voColumn2 Set ComExpandColumns of hoColumn2 to "4,5" Set ComExpanded of hoColumn2 to False Send Destroy to hoColumn2 Send Destroy to hoColumns Send ComEndUpdate End_Procedure |
844 |
Can I change the format of date to be shown in the control
Procedure OnCreate Forward Send OnCreate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Default" to Nothing Variant voColumn Get ComAdd of hoColumns "Format.1" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComComputedField of hoColumn to "%0" Set ComFormatColumn of hoColumn to "dateF(value) replace `/` with `-`" Send Destroy to hoColumn Variant voColumn1 Get ComAdd of hoColumns "Format.2" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComComputedField of hoColumn1 to "%0" Set ComDef of hoColumn1 OLEexCellCaptionFormat to 1 Set ComFormatColumn of hoColumn1 to "`<b>`+ shortdate(value) + `</b> ` + timeF(value)" Send Destroy to hoColumn1 Variant voColumn2 Get ComAdd of hoColumns "Format.3" to voColumn2 Handle hoColumn2 Get Create (RefClass(cComColumn)) to hoColumn2 Set pvComObject of hoColumn2 to voColumn2 Set ComComputedField of hoColumn2 to "%0" Set ComDef of hoColumn2 OLEexCellCaptionFormat to 1 Set ComFormatColumn of hoColumn2 to "` <b>`+ ( weekday(value) case ( 0 : `Su`; 1 : `Mo`; 2 : `Tu`; 3 : `We`; 4 : `Th`; 5 : `Fr`; 6 : `Sa`) ) + `</b> ` + ( dateF(value) replace `/` with `-` )" Send Destroy to hoColumn2 Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Get ComAddItem of hoItems "1/1/2001 10:00:00 AM" to Nothing Get ComAddItem of hoItems "1/2/2001 10:00:00 AM" to Nothing Send Destroy to hoItems End_Procedure |
843 |
How can I remove all bars from the chart
|
842 |
How can I change the color for all bars with a specified key
|
841 |
Is there any automatic way to change a property for all bars with a specified key
|
840 |
How can I remove all bars with specified key
|
839 |
How can I find if there is any filter applied to the control
// Occurs when the filter was changed. Procedure OnComFilterChange Forward Send OnComFilterChange Variant v Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Get ComVisibleItemCount of hoItems to v Send Destroy to hoItems Showln "If negative, the filter is present, else not" v End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComLinesAtRoot to OLEexLinesAtRoot Set ComTreeColumnIndex to -1 Set ComFilterInclude to OLEexMatchingItemsOnly Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Column" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDisplayFilterButton of hoColumn to True Set ComFilterType of hoColumn to OLEexFilter Set ComFilter of hoColumn to "C1" Send Destroy to hoColumn Send Destroy to hoColumns Variant voItems1 Get ComItems to voItems1 Handle hoItems1 Get Create (RefClass(cComItems)) to hoItems1 Set pvComObject of hoItems1 to voItems1 Variant h Get ComAddItem of hoItems1 "R1" to h Get ComInsertItem of hoItems1 h "C1" to Nothing Get ComInsertItem of hoItems1 h "C2" to Nothing Set ComExpandItem of hoItems1 h to True Get ComAddItem of hoItems1 "R2" to h Get ComInsertItem of hoItems1 h "C1" to Nothing Get ComInsertItem of hoItems1 h "C2" to Nothing Send Destroy to hoItems1 Send ComApplyFilter Send ComEndUpdate End_Procedure |
838 |
How can I prevent showing the lines for the hierarchy while using the exMatchingItemsOnly option
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComLinesAtRoot to OLEexLinesAtRoot Set ComTreeColumnIndex to -1 Set ComFilterInclude to OLEexMatchingItemsOnly Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Column" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDisplayFilterButton of hoColumn to True Set ComFilterType of hoColumn to OLEexFilter Set ComFilter of hoColumn to "C1|C2" Send Destroy to hoColumn Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComAddItem of hoItems "R1" to h Get ComInsertItem of hoItems h "C1" to Nothing Get ComInsertItem of hoItems h "C2" to Nothing Set ComExpandItem of hoItems h to True Get ComAddItem of hoItems "R2" to h Get ComInsertItem of hoItems h "C1" to Nothing Get ComInsertItem of hoItems h "C2" to Nothing Send Destroy to hoItems Send ComApplyFilter Send ComEndUpdate End_Procedure |
837 |
Is there any method to get only the matched items and not the items with his parent
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComLinesAtRoot to OLEexLinesAtRoot Set ComFilterInclude to OLEexMatchingItemsOnly Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Column" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDisplayFilterButton of hoColumn to True Set ComFilterType of hoColumn to OLEexFilter Set ComFilter of hoColumn to "C1|C2" Send Destroy to hoColumn Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComAddItem of hoItems "R1" to h Get ComInsertItem of hoItems h "C1" to Nothing Get ComInsertItem of hoItems h "C2" to Nothing Set ComExpandItem of hoItems h to True Get ComAddItem of hoItems "R2" to h Get ComInsertItem of hoItems h "C1" to Nothing Get ComInsertItem of hoItems h "C2" to Nothing Send Destroy to hoItems Send ComApplyFilter Send ComEndUpdate End_Procedure |
836 |
Is there any property I can save and restore automatically the current setting, column position, size, and so on (2)
|
835 |
Is there any property I can save and restore automatically the current setting, column position, size, and so on (1)
|
834 |
I have noticed that the column's header is changed once the cursor hovers it. Is it possible to change that visual appearance
|
833 |
Is it possible to change the visual appearance of the columns selector/floating bar(3)
Procedure OnCreate Forward Send OnCreate Set ComColumnAutoResize to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Column 1" to Nothing Variant voColumn Get ComAdd of hoColumns "Column 2" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComVisible of hoColumn to False Send Destroy to hoColumn Send Destroy to hoColumns Variant voAppearance Get ComVisualAppearance to voAppearance Handle hoAppearance Get Create (RefClass(cComAppearance)) to hoAppearance Set pvComObject of hoAppearance to voAppearance Get ComAdd of hoAppearance 2 "c:\exontrol\images\normal.ebn" to Nothing Send Destroy to hoAppearance Variant voAppearance1 Get ComVisualAppearance to voAppearance1 Handle hoAppearance1 Get Create (RefClass(cComAppearance)) to hoAppearance1 Set pvComObject of hoAppearance1 to voAppearance1 Get ComAdd of hoAppearance1 3 "c:\exontrol\images\pushed.ebn" to Nothing Send Destroy to hoAppearance1 Set ComBackground OLEexColumnsFloatAppearance to |CI$2000000 Set ComBackground OLEexColumnsFloatBackColor to |CI$3000000 Set ComBackground OLEexColumnsFloatCaptionBackColor to (RGB(246,245,240)) Set ComColumnsFloatBarVisible to True End_Procedure |
832 |
Is it possible to change the visual appearance of the columns selector/floating bar(2)
Procedure OnCreate Forward Send OnCreate Set ComColumnAutoResize to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Column 1" to Nothing Variant voColumn Get ComAdd of hoColumns "Column 2" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComVisible of hoColumn to False Send Destroy to hoColumn Send Destroy to hoColumns Variant voAppearance Get ComVisualAppearance to voAppearance Handle hoAppearance Get Create (RefClass(cComAppearance)) to hoAppearance Set pvComObject of hoAppearance to voAppearance Get ComAdd of hoAppearance 3 "c:\exontrol\images\pushed.ebn" to Nothing Send Destroy to hoAppearance Set ComBackground OLEexColumnsFloatBackColor to |CI$3000000 Set ComColumnsFloatBarVisible to True End_Procedure |
831 |
Is it possible to change the visual appearance of the columns selector/floating bar(1)
Procedure OnCreate Forward Send OnCreate Variant voAppearance Get ComVisualAppearance to voAppearance Handle hoAppearance Get Create (RefClass(cComAppearance)) to hoAppearance Set pvComObject of hoAppearance to voAppearance Get ComAdd of hoAppearance 2 "c:\exontrol\images\normal.ebn" to Nothing Send Destroy to hoAppearance Set ComBackground OLEexColumnsFloatAppearance to |CI$2000000 Set ComBackground OLEexColumnsFloatBackColor to (RGB(246,245,240)) Set ComBackground OLEexColumnsFloatCaptionBackColor to (RGB(246,245,240)) Set ComColumnsFloatBarVisible to True End_Procedure |
830 |
I am using the ColumnsFloatBarVisible property on True, but still not able to add any column on that list
Procedure OnCreate Forward Send OnCreate Set ComColumnAutoResize to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Column 1" to Nothing Variant voColumn Get ComAdd of hoColumns "Column 2" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComVisible of hoColumn to False Send Destroy to hoColumn Send Destroy to hoColumns Set ComColumnsFloatBarVisible to True End_Procedure |
829 |
Is it possible to list a column to columns selector/floating bar, but still user can use it
Procedure OnCreate Forward Send OnCreate Set ComColumnAutoResize to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Column 1" to Nothing Variant voColumn Get ComAdd of hoColumns "Column 2" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComVisible of hoColumn to False Send Destroy to hoColumn Variant voColumn1 Get ComAdd of hoColumns "Column 3" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComVisible of hoColumn1 to False Set ComEnabled of hoColumn1 to False Send Destroy to hoColumn1 Send Destroy to hoColumns Set ComColumnsFloatBarVisible to True End_Procedure |
828 |
How can I prevent a specific column not to be listed in the columns selector/floating bar
Procedure OnCreate Forward Send OnCreate Set ComColumnAutoResize to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Column 1" to Nothing Variant voColumn Get ComAdd of hoColumns "Column 2" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComVisible of hoColumn to False Send Destroy to hoColumn Variant voColumn1 Get ComAdd of hoColumns "Column 3" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComVisible of hoColumn1 to False Set ComAllowDragging of hoColumn1 to False Send Destroy to hoColumn1 Send Destroy to hoColumns Set ComColumnsFloatBarVisible to True End_Procedure |
827 |
Is it possible to change the "Columns" caption being shown in the columns selector/floating bar
Procedure OnCreate Forward Send OnCreate Set ComColumnAutoResize to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Column 1" to Nothing Variant voColumn Get ComAdd of hoColumns "Column 2" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComVisible of hoColumn to False Send Destroy to hoColumn Send Destroy to hoColumns Set ComDescription OLEexColumnsFloatBar to "Hidden Columns" Set ComColumnsFloatBarVisible to True End_Procedure |
826 |
How can I show the columns selector, so the user can drag and drop columns to the view
Procedure OnCreate Forward Send OnCreate Set ComColumnAutoResize to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Column 1" to Nothing Variant voColumn Get ComAdd of hoColumns "Column 2" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComVisible of hoColumn to False Send Destroy to hoColumn Send Destroy to hoColumns Set ComColumnsFloatBarVisible to True End_Procedure |
825 |
The column's header is changed while the cursor hovers it. Is it possible to prevent that
|
824 |
How do I enable the scrollbar-extension, as thumb to be shown outside of the control's client area
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComScrollBars to OLEexDisableBoth Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComToolTip of hoChart to "" Send Destroy to hoChart Set ComScrollPartVisible OLEexVScroll OLEexExtentThumbPart to True Set ComScrollPartVisible OLEexHScroll OLEexExtentThumbPart to True Set ComScrollPartVisible OLEexHChartScroll OLEexExtentThumbPart to True Set ComScrollWidth to 4 Set ComBackground OLEexVSBack to (RGB(240,240,240)) Set ComBackground OLEexVSThumb to (RGB(128,128,128)) Set ComScrollHeight to 4 Set ComBackground OLEexHSBack to (ComBackground(Self,OLEexVSBack)) Set ComBackground OLEexHSThumb to (ComBackground(Self,OLEexVSThumb)) Set ComBackground OLEexScrollSizeGrip to (ComBackground(Self,OLEexVSBack)) Send ComEndUpdate End_Procedure |
823 |
How can I display the Year in Thai, Buddhist, Korean format
Procedure OnCreate Forward Send OnCreate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstWeekDay of hoChart to (ComLocFirstWeekDay(hoChart)) Set ComMonthNames of hoChart to (ComLocMonthNames(hoChart)) Set ComWeekDays of hoChart to (ComLocWeekDays(hoChart)) Set ComAMPM of hoChart to (ComLocAMPM(hoChart)) Set ComLevelCount of hoChart to 2 Set ComPaneWidth of hoChart False to 0 Set ComUnitScale of hoChart to OLEexDay Variant voLevel Get ComLevel of hoChart 0 to voLevel Handle hoLevel Get Create (RefClass(cComLevel)) to hoLevel Set pvComObject of hoLevel to voLevel Set ComLabel of hoLevel to "<%mmmm%> <%d%>, <%loc_yyyy%> <r><%ww%>" Set ComUnit of hoLevel to OLEexWeek Set ComToolTip of hoLevel to (ComLabel(hoLevel)) Send Destroy to hoLevel Set ComToolTip of hoChart to "<%ddd%> <%m%>/<%d%>/<%loc_yyyy%>" Send Destroy to hoChart Variant v Variant voChart1 Get ComChart to voChart1 Handle hoChart1 Get Create (RefClass(cComChart)) to hoChart1 Set pvComObject of hoChart1 to voChart1 Get ComMonthNames of hoChart1 to v Send Destroy to hoChart1 Set ComDescription OLEexFilterBarDateMonths to v End_Procedure |
822 |
How does localization work
Procedure OnCreate Forward Send OnCreate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstWeekDay of hoChart to (ComLocFirstWeekDay(hoChart)) Set ComMonthNames of hoChart to (ComLocMonthNames(hoChart)) Set ComWeekDays of hoChart to (ComLocWeekDays(hoChart)) Set ComAMPM of hoChart to (ComLocAMPM(hoChart)) Set ComLevelCount of hoChart to 2 Set ComPaneWidth of hoChart False to 0 Send Destroy to hoChart End_Procedure |
821 |
How can I have a case-insensitive filter (exFilterDoCaseSensitive flag is not set)
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Set ComMarkSearchColumn to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Car" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDisplayFilterButton of hoColumn to True Set ComFilterType of hoColumn to OLEexFilter Set ComFilter of hoColumn to "MAZDA" Send Destroy to hoColumn Variant voColumn1 Get ComAdd of hoColumns "Equipment" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComDisplayFilterButton of hoColumn1 to True Set ComDisplayFilterPattern of hoColumn1 to False Set ComCustomFilter of hoColumn1 to "Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*" Set ComFilterType of hoColumn1 to OLEexPattern Set ComFilter of hoColumn1 to "AIR BAG" Send Destroy to hoColumn1 Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Set ComCellCaption of hoItems (ComAddItem(hoItems,"Mazda")) 1 to "Air Bag" Set ComCellCaption of hoItems (ComAddItem(hoItems,"Toyota")) 1 to "Air Bag,Air condition" Set ComCellCaption of hoItems (ComAddItem(hoItems,"Ford")) 1 to "Air condition" Set ComCellCaption of hoItems (ComAddItem(hoItems,"Nissan")) 1 to "Air Bag,ABS,ESP" Set ComCellCaption of hoItems (ComAddItem(hoItems,"Mazda")) 1 to "Air Bag, ABS,ESP" Set ComCellCaption of hoItems (ComAddItem(hoItems,"Mazda")) 1 to "ABS,ESP" Send Destroy to hoItems Send ComApplyFilter Send ComEndUpdate End_Procedure |
820 |
How can I have a case-sensitive filter
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Set ComMarkSearchColumn to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Car" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDisplayFilterButton of hoColumn to True Set ComFilterType of hoColumn to (OLEexFilterDoCaseSensitive + OLEexFilter) Set ComFilter of hoColumn to "Mazda" Send Destroy to hoColumn Variant voColumn1 Get ComAdd of hoColumns "Equipment" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComDisplayFilterButton of hoColumn1 to True Set ComDisplayFilterPattern of hoColumn1 to False Set ComCustomFilter of hoColumn1 to "Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*" Set ComFilterType of hoColumn1 to (OLEexFilterDoCaseSensitive + OLEexPattern) Set ComFilter of hoColumn1 to "Air Bag" Send Destroy to hoColumn1 Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Set ComCellCaption of hoItems (ComAddItem(hoItems,"Mazda")) 1 to "Air Bag" Set ComCellCaption of hoItems (ComAddItem(hoItems,"Toyota")) 1 to "Air Bag,Air condition" Set ComCellCaption of hoItems (ComAddItem(hoItems,"Ford")) 1 to "Air condition" Set ComCellCaption of hoItems (ComAddItem(hoItems,"Nissan")) 1 to "Air Bag,ABS,ESP" Set ComCellCaption of hoItems (ComAddItem(hoItems,"Mazda")) 1 to "Air Bag, ABS,ESP" Set ComCellCaption of hoItems (ComAddItem(hoItems,"Mazda")) 1 to "ABS,ESP" Send Destroy to hoItems Send ComApplyFilter Send ComEndUpdate End_Procedure |
819 |
I am using the FormatColumn/FormatCell to format my columns. Is it possible to ignore the SelForeColor, so the foreground color for selected items does not override my settings
// Fired after a new item has been selected. Procedure OnComSelectionChanged Forward Send OnComSelectionChanged Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComClearItemBackColor of hoItems 0 Set ComItemBackColor of hoItems (ComSelectedItem(hoItems,0)) to (RGB(128,255,255)) Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComMarkSearchColumn to False Set ComSelForeColor to (ComForeColor(Self)) Set ComSelBackColor to (ComBackColor(Self)) Set ComShowFocusRect to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Format" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComFormatColumn of hoColumn to "type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=0000FF>+'+(value format '2|.|3|,' ): '0.00') )" Set ComDef of hoColumn OLEexCellCaptionFormat to 1 Send Destroy to hoColumn Send Destroy to hoColumns Variant voItems1 Get ComItems to voItems1 Handle hoItems1 Get Create (RefClass(cComItems)) to hoItems1 Set pvComObject of hoItems1 to voItems1 Get ComAddItem of hoItems1 10 to Nothing Get ComAddItem of hoItems1 -8 to Nothing Send Destroy to hoItems1 Send ComEndUpdate End_Procedure |
818 |
How do I hide the selection
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Set ComMarkSearchColumn to False Set ComSelForeColor to (ComForeColor(Self)) Set ComSelBackColor to (ComBackColor(Self)) Set ComShowFocusRect to False Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Format" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComFormatColumn of hoColumn to "type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=0000FF>+'+(value format '2|.|3|,' ): '0.00') )" Set ComDef of hoColumn OLEexCellCaptionFormat to 1 Send Destroy to hoColumn Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Get ComAddItem of hoItems 10 to Nothing Get ComAddItem of hoItems -8 to Nothing Send Destroy to hoItems Send ComEndUpdate End_Procedure |
817 |
How do I access the cells, or how do I get the values in the columns
Procedure OnCreate Forward Send OnCreate Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "C1" to Nothing Get ComAdd of hoColumns "C2" to Nothing Get ComAdd of hoColumns "C3" to Nothing Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComAddItem of hoItems "Item 1" to h Set ComCellCaption of hoItems h 1 to "SubItem 1.1" Set ComCellCaption of hoItems h 2 to "SubItem 1.2" Showln (ComCellCaption(hoItems,h,2)) Send Destroy to hoItems End_Procedure |
816 |
How can I change the check-boxes appearance
Procedure OnCreate Forward Send OnCreate Set ComLinesAtRoot to OLEexLinesAtRoot Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Default" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDef of hoColumn OLEexCellHasCheckBox to True Set ComPartialCheck of hoColumn to True Send Destroy to hoColumn Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComAddItem of hoItems "Root" to h Get ComInsertItem of hoItems h "Child 1" to Nothing Get ComInsertItem of hoItems h "Child 2" to Nothing Set ComExpandItem of hoItems h to True Send Destroy to hoItems Variant voAppearance Get ComVisualAppearance to voAppearance Handle hoAppearance Get Create (RefClass(cComAppearance)) to hoAppearance Set pvComObject of hoAppearance to voAppearance Get ComAdd of hoAppearance 1 "XP:Button 3 12" to Nothing Get ComAdd of hoAppearance 2 "XP:Button 3 11" to Nothing Get ComAdd of hoAppearance 3 "XP:Button 3 10" to Nothing Send Destroy to hoAppearance Set ComCheckImage OLEUnchecked to 16777216 Set ComCheckImage OLEChecked to 33554432 Set ComCheckImage OLEPartialChecked to 50331648 End_Procedure |
815 |
How can I load my table from an Access 2007, using ADO
// Occurs after a new Item has been inserted to Items collection. Procedure OnComAddItem HITEM llItem Forward Send OnComAddItem llItem Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems llItem "Task" (ComCellCaption(hoItems,llItem,2)) (ComCellCaption(hoItems,llItem,4)) Nothing Nothing Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstVisibleDate of hoChart to "8/3/1994" Set ComPaneWidth of hoChart False to 256 Set ComLevelCount of hoChart to 2 Set ComUnitScale of hoChart to OLEexDay Set ComFirstWeekDay of hoChart to OLEexMonday Set ComOverviewVisible of hoChart to OLEexOverviewShowAll Send Destroy to hoChart Set ComColumnAutoResize to False Set ComContinueColumnScroll to False Variant rs Get Comcreateobject "ADOR.Recordset" to rs Send ComOpen "Orders" "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\sample.accdb" OLEadOpenStatic OLEadLockOptimistic Nothing Set ComDataSource to rs Send ComEndUpdate End_Procedure |
814 |
Is it possible display numbers in the same format no matter of regional settings in the control panel
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Def" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDef of hoColumn OLEexCellCaptionFormat to 1 Send Destroy to hoColumn Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComAddItem of hoItems 666666.27 to h Set ComFormatCell of hoItems h 0 to "(value format '') + ' <fgcolor=808080>(default positive)'" Get ComAddItem of hoItems 666666.27 to h Set ComFormatCell of hoItems h 0 to "(value format '2|.|3|,|1|1')" Get ComAddItem of hoItems -666666.27 to h Set ComFormatCell of hoItems h 0 to "(value format '') + ' <fgcolor=808080>(default negative)'" Get ComAddItem of hoItems -666666.27 to h Set ComFormatCell of hoItems h 0 to "(value format '2|.|3|,|1|1')" Send Destroy to hoItems Send ComEndUpdate End_Procedure |
813 |
The right pane needs to show ONLY the hours 6am to 9pm (every hour) for one day only and the user should not to be able to scroll left or right nor see any other hours. How can I do that
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Tasks" to Nothing Send Destroy to hoColumns Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComLevelCount of hoChart to 2 Set ComScrollRange of hoChart OLEexStartDate to "1/1/2001" Set ComScrollRange of hoChart OLEexEndDate to "1/1/2001" Set ComUnitScale of hoChart to OLEexHour Set ComNonworkingHours of hoChart to 12582975 Set ComShowNonworkingUnits of hoChart to False Variant voLevel Get ComLevel of hoChart 0 to voLevel Handle hoLevel Get Create (RefClass(cComLevel)) to hoLevel Set pvComObject of hoLevel to voLevel Set ComAlignment of hoLevel to (OLEexHOutside + OLECenterAlignment) Send Destroy to hoLevel Set ComUnitWidth of hoChart to 18 Set ComPaneWidth of hoChart True to 294 Set ComScrollBar of hoChart to False Send Destroy to hoChart Set ComOnResizeControl to OLEexDisableSplitter Send ComEndUpdate End_Procedure |
812 |
Can I use ebn files to display the selected dates
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voAppearance Get ComVisualAppearance to voAppearance Handle hoAppearance Get Create (RefClass(cComAppearance)) to hoAppearance Set pvComObject of hoAppearance to voAppearance Get ComAdd of hoAppearance 2 "c:\exontrol\images\normal.ebn" to Nothing Get ComAdd of hoAppearance 1 "CP:2 0 -4 0 4" to Nothing Send Destroy to hoAppearance Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstVisibleDate of hoChart to "1/1/2008" Set ComMarkTodayColor of hoChart to (ComBackColor(hoChart)) Set ComLevelCount of hoChart to 2 Set ComMarkSelectDateColor of hoChart to |CI$1000000 Set ComSelectLevel of hoChart to 1 Set ComSelectDate of hoChart "1/3/2008" to True Set ComSelectDate of hoChart "1/4/2008" to True Send Destroy to hoChart Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Default" to Nothing Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems (ComAddItem(hoItems,"Item 1")) "Task" "1/2/2008" "1/6/2008" Nothing Nothing Send ComAddBar of hoItems (ComAddItem(hoItems,"Item 2")) "Task" "1/3/2008" "1/7/2008" Nothing Nothing Send ComAddBar of hoItems (ComAddItem(hoItems,"Item 3")) "Task" "1/4/2008" "1/8/2008" Nothing Nothing Send ComAddBar of hoItems (ComAddItem(hoItems,"Item 4")) "Task" "1/5/2008" "1/9/2008" Nothing Nothing Send Destroy to hoItems Send ComEndUpdate End_Procedure |
811 |
Can I use ebn files to display the selected dates
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voAppearance Get ComVisualAppearance to voAppearance Handle hoAppearance Get Create (RefClass(cComAppearance)) to hoAppearance Set pvComObject of hoAppearance to voAppearance Get ComAdd of hoAppearance 1 "c:\exontrol\images\normal.ebn" to Nothing Send Destroy to hoAppearance Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstVisibleDate of hoChart to "1/1/2008" Set ComMarkTodayColor of hoChart to (ComBackColor(hoChart)) Set ComLevelCount of hoChart to 2 Set ComMarkSelectDateColor of hoChart to |CI$1000000 Set ComSelectLevel of hoChart to 1 Set ComSelectDate of hoChart "1/3/2008" to True Send Destroy to hoChart Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Default" to Nothing Send Destroy to hoColumns Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems (ComAddItem(hoItems,"Item 1")) "Task" "1/2/2008" "1/6/2008" Nothing Nothing Send ComAddBar of hoItems (ComAddItem(hoItems,"Item 2")) "Task" "1/3/2008" "1/7/2008" Nothing Nothing Send ComAddBar of hoItems (ComAddItem(hoItems,"Item 3")) "Task" "1/4/2008" "1/8/2008" Nothing Nothing Send Destroy to hoItems Send ComEndUpdate End_Procedure |
810 |
How can I change the color for selected dates to be solid
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart False to 0 Set ComFirstVisibleDate of hoChart to "1/1/2008" Set ComMarkTodayColor of hoChart to (ComBackColor(hoChart)) Set ComLevelCount of hoChart to 2 Set ComMarkSelectDateColor of hoChart to |CI$7fff0000 Set ComSelectLevel of hoChart to 1 Set ComSelectDate of hoChart "1/15/2008" to True Set ComSelectDate of hoChart "1/16/2008" to True Send Destroy to hoChart Send ComEndUpdate End_Procedure |
809 |
How can I add or change the padding (spaces) for captions in the control's header
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Padding-Left" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDef of hoColumn OLEexHeaderPaddingLeft to 18 Send Destroy to hoColumn Send Destroy to hoColumns Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Variant voColumn1 Get ComAdd of hoColumns1 "Padding-Right" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComDef of hoColumn1 OLEexHeaderPaddingRight to 18 Set ComHeaderAlignment of hoColumn1 to OLERightAlignment Send Destroy to hoColumn1 Send Destroy to hoColumns1 Send ComEndUpdate End_Procedure |
808 |
Do you have any plans to add cell spacing and cell padding to the cells
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Set ComDrawGridLines to OLEexAllLines Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Padding-Left" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDef of hoColumn OLEexCellHasCheckBox to True Set ComDef of hoColumn OLEexCellPaddingLeft to 18 Send Destroy to hoColumn Send Destroy to hoColumns Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Variant voColumn1 Get ComAdd of hoColumns1 "No-Padding" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComDef of hoColumn1 OLEexCellHasCheckBox to True Send Destroy to hoColumn1 Send Destroy to hoColumns1 Variant voColumns2 Get ComColumns to voColumns2 Handle hoColumns2 Get Create (RefClass(cComColumns)) to hoColumns2 Set pvComObject of hoColumns2 to voColumns2 Variant voColumn2 Get ComAdd of hoColumns2 "Empty" to voColumn2 Handle hoColumn2 Get Create (RefClass(cComColumn)) to hoColumn2 Set pvComObject of hoColumn2 to voColumn2 Set ComPosition of hoColumn2 to 0 Send Destroy to hoColumn2 Send Destroy to hoColumns2 Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Set ComCellCaption of hoItems (ComAddItem(hoItems,"Item A.1")) 1 to "Item A.2" Set ComCellCaption of hoItems (ComAddItem(hoItems,"Item B.1")) 1 to "Item B.2" Set ComCellCaption of hoItems (ComAddItem(hoItems,"Item C.1")) 1 to "Item C.2" Send Destroy to hoItems Send ComEndUpdate End_Procedure |
807 |
Is it possible to display information about the firing events
|
806 |
Is it possible to scroll the control's content by clicking and moving the mouse up or down
// Occurs after a new Item has been inserted to Items collection. Procedure OnComAddItem HITEM llItem Forward Send OnComAddItem llItem Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems llItem "Task" (ComCellCaption(hoItems,llItem,2)) (ComCellCaption(hoItems,llItem,4)) Nothing Nothing Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstVisibleDate of hoChart to "8/3/1994" Set ComPaneWidth of hoChart False to 256 Set ComLevelCount of hoChart to 2 Set ComUnitScale of hoChart to OLEexDay Set ComFirstWeekDay of hoChart to OLEexMonday Set ComOverviewVisible of hoChart to OLEexOverviewShowAll Send Destroy to hoChart Set ComColumnAutoResize to False Set ComContinueColumnScroll to False Variant rs Get Comcreateobject "ADOR.Recordset" to rs Send ComOpen "Orders" "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\SAMPLE.MDB" OLEadOpenStatic OLEadLockOptimistic Nothing Set ComDataSource to rs Set ComAutoDrag to OLEexAutoDragScroll Send ComEndUpdate End_Procedure |
805 |
How do I load bars from my ADO table/database
// Occurs after a new Item has been inserted to Items collection. Procedure OnComAddItem HITEM llItem Forward Send OnComAddItem llItem Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Send ComAddBar of hoItems llItem "Task" (ComCellCaption(hoItems,llItem,2)) (ComCellCaption(hoItems,llItem,4)) Nothing Nothing Send Destroy to hoItems End_Procedure Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComFirstVisibleDate of hoChart to "8/3/1994" Set ComPaneWidth of hoChart False to 256 Set ComLevelCount of hoChart to 2 Set ComUnitScale of hoChart to OLEexDay Set ComFirstWeekDay of hoChart to OLEexMonday Set ComOverviewVisible of hoChart to OLEexOverviewShowAll Send Destroy to hoChart Set ComColumnAutoResize to False Set ComContinueColumnScroll to False Variant rs Get Comcreateobject "ADOR.Recordset" to rs Send ComOpen "Orders" "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExGantt\Sample\Access\SAMPLE.MDB" OLEadOpenStatic OLEadLockOptimistic Nothing Set ComDataSource to rs Send ComEndUpdate End_Procedure |
804 |
Is it possible to auto-numbering the children items but still keeps the position after filtering
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Set ComLinesAtRoot to OLEexLinesAtRoot Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Variant voColumn Get ComAdd of hoColumns "Items" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComDisplayFilterButton of hoColumn to True Set ComFilterType of hoColumn to OLEexFilter Set ComFilter of hoColumn to "Child 2" Send Destroy to hoColumn Send Destroy to hoColumns Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Variant voColumn1 Get ComAdd of hoColumns1 "Pos.1" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComFormatColumn of hoColumn1 to "1 ropos ''" Set ComPosition of hoColumn1 to 0 Set ComWidth of hoColumn1 to 32 Set ComAllowSizing of hoColumn1 to False Send Destroy to hoColumn1 Send Destroy to hoColumns1 Variant voColumns2 Get ComColumns to voColumns2 Handle hoColumns2 Get Create (RefClass(cComColumns)) to hoColumns2 Set pvComObject of hoColumns2 to voColumns2 Variant voColumn2 Get ComAdd of hoColumns2 "Pos.2" to voColumn2 Handle hoColumn2 Get Create (RefClass(cComColumn)) to hoColumn2 Set pvComObject of hoColumn2 to voColumn2 Set ComFormatColumn of hoColumn2 to "1 ropos ':'" Set ComPosition of hoColumn2 to 1 Set ComWidth of hoColumn2 to 32 Set ComAllowSizing of hoColumn2 to False Send Destroy to hoColumn2 Send Destroy to hoColumns2 Variant voColumns3 Get ComColumns to voColumns3 Handle hoColumns3 Get Create (RefClass(cComColumns)) to hoColumns3 Set pvComObject of hoColumns3 to voColumns3 Variant voColumn3 Get ComAdd of hoColumns3 "Pos.3" to voColumn3 Handle hoColumn3 Get Create (RefClass(cComColumn)) to hoColumn3 Set pvComObject of hoColumn3 to voColumn3 Set ComFormatColumn of hoColumn3 to "1 ropos ':|A-Z'" Set ComPosition of hoColumn3 to 2 Set ComWidth of hoColumn3 to 32 Set ComAllowSizing of hoColumn3 to False Send Destroy to hoColumn3 Send Destroy to hoColumns3 Variant voColumns4 Get ComColumns to voColumns4 Handle hoColumns4 Get Create (RefClass(cComColumns)) to hoColumns4 Set pvComObject of hoColumns4 to voColumns4 Variant voColumn4 Get ComAdd of hoColumns4 "Pos.4" to voColumn4 Handle hoColumn4 Get Create (RefClass(cComColumn)) to hoColumn4 Set pvComObject of hoColumn4 to voColumn4 Set ComFormatColumn of hoColumn4 to "1 ropos '|A-Z|'" Set ComPosition of hoColumn4 to 3 Set ComWidth of hoColumn4 to 32 Set ComAllowSizing of hoColumn4 to False Send Destroy to hoColumn4 Send Destroy to hoColumns4 Variant voColumns5 Get ComColumns to voColumns5 Handle hoColumns5 Get Create (RefClass(cComColumns)) to hoColumns5 Set pvComObject of hoColumns5 to voColumns5 Variant voColumn5 Get ComAdd of hoColumns5 "Pos.5" to voColumn5 Handle hoColumn5 Get Create (RefClass(cComColumn)) to hoColumn5 Set pvComObject of hoColumn5 to voColumn5 Set ComFormatColumn of hoColumn5 to "'<font Tahoma;7>' + 1 ropos '-<b>||A-Z'" Set ComDef of hoColumn5 OLEexCellCaptionFormat to 1 Set ComPosition of hoColumn5 to 4 Set ComWidth of hoColumn5 to 32 Set ComAllowSizing of hoColumn5 to False Send Destroy to hoColumn5 Send Destroy to hoColumns5 Variant voColumns6 Get ComColumns to voColumns6 Handle hoColumns6 Get Create (RefClass(cComColumns)) to hoColumns6 Set pvComObject of hoColumns6 to voColumns6 Variant voColumn6 Get ComAdd of hoColumns6 "Pos.6" to voColumn6 Handle hoColumn6 Get Create (RefClass(cComColumn)) to hoColumn6 Set pvComObject of hoColumn6 to voColumn6 Set ComFormatColumn of hoColumn6 to "'<b>'+ 1 ropos '</b>:<fgcolor=FF0000>|A-Z|'" Set ComDef of hoColumn6 OLEexCellCaptionFormat to 1 Set ComPosition of hoColumn6 to 5 Set ComWidth of hoColumn6 to 48 Set ComAllowSizing of hoColumn6 to False Send Destroy to hoColumn6 Send Destroy to hoColumns6 Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComAddItem of hoItems "Root 1" to h Get ComInsertItem of hoItems h "Child 1" to Nothing Get ComInsertItem of hoItems h "Child 2" to Nothing Set ComExpandItem of hoItems h to True Get ComAddItem of hoItems "Root 2" to h Get ComInsertItem of hoItems h "Child 1" to Nothing Get ComInsertItem of hoItems h "Child 2" to Nothing Send Destroy to hoItems Send ComApplyFilter Send ComEndUpdate End_Procedure |
803 |
Is it possible to auto-numbering the children items too
Procedure OnCreate Forward Send OnCreate Send ComBeginUpdate Variant voChart Get ComChart to voChart Handle hoChart Get Create (RefClass(cComChart)) to hoChart Set pvComObject of hoChart to voChart Set ComPaneWidth of hoChart True to 0 Send Destroy to hoChart Set ComLinesAtRoot to OLEexLinesAtRoot Variant voColumns Get ComColumns to voColumns Handle hoColumns Get Create (RefClass(cComColumns)) to hoColumns Set pvComObject of hoColumns to voColumns Get ComAdd of hoColumns "Items" to Nothing Send Destroy to hoColumns Variant voColumns1 Get ComColumns to voColumns1 Handle hoColumns1 Get Create (RefClass(cComColumns)) to hoColumns1 Set pvComObject of hoColumns1 to voColumns1 Variant voColumn Get ComAdd of hoColumns1 "Pos.1" to voColumn Handle hoColumn Get Create (RefClass(cComColumn)) to hoColumn Set pvComObject of hoColumn to voColumn Set ComFormatColumn of hoColumn to "1 rpos ''" Set ComPosition of hoColumn to 0 Set ComWidth of hoColumn to 32 Set ComAllowSizing of hoColumn to False Send Destroy to hoColumn Send Destroy to hoColumns1 Variant voColumns2 Get ComColumns to voColumns2 Handle hoColumns2 Get Create (RefClass(cComColumns)) to hoColumns2 Set pvComObject of hoColumns2 to voColumns2 Variant voColumn1 Get ComAdd of hoColumns2 "Pos.2" to voColumn1 Handle hoColumn1 Get Create (RefClass(cComColumn)) to hoColumn1 Set pvComObject of hoColumn1 to voColumn1 Set ComFormatColumn of hoColumn1 to "1 rpos ':'" Set ComPosition of hoColumn1 to 1 Set ComWidth of hoColumn1 to 32 Set ComAllowSizing of hoColumn1 to False Send Destroy to hoColumn1 Send Destroy to hoColumns2 Variant voColumns3 Get ComColumns to voColumns3 Handle hoColumns3 Get Create (RefClass(cComColumns)) to hoColumns3 Set pvComObject of hoColumns3 to voColumns3 Variant voColumn2 Get ComAdd of hoColumns3 "Pos.3" to voColumn2 Handle hoColumn2 Get Create (RefClass(cComColumn)) to hoColumn2 Set pvComObject of hoColumn2 to voColumn2 Set ComFormatColumn of hoColumn2 to "1 rpos ':|A-Z'" Set ComPosition of hoColumn2 to 2 Set ComWidth of hoColumn2 to 32 Set ComAllowSizing of hoColumn2 to False Send Destroy to hoColumn2 Send Destroy to hoColumns3 Variant voColumns4 Get ComColumns to voColumns4 Handle hoColumns4 Get Create (RefClass(cComColumns)) to hoColumns4 Set pvComObject of hoColumns4 to voColumns4 Variant voColumn3 Get ComAdd of hoColumns4 "Pos.4" to voColumn3 Handle hoColumn3 Get Create (RefClass(cComColumn)) to hoColumn3 Set pvComObject of hoColumn3 to voColumn3 Set ComFormatColumn of hoColumn3 to "1 rpos '|A-Z|'" Set ComPosition of hoColumn3 to 3 Set ComWidth of hoColumn3 to 32 Set ComAllowSizing of hoColumn3 to False Send Destroy to hoColumn3 Send Destroy to hoColumns4 Variant voColumns5 Get ComColumns to voColumns5 Handle hoColumns5 Get Create (RefClass(cComColumns)) to hoColumns5 Set pvComObject of hoColumns5 to voColumns5 Variant voColumn4 Get ComAdd of hoColumns5 "Pos.5" to voColumn4 Handle hoColumn4 Get Create (RefClass(cComColumn)) to hoColumn4 Set pvComObject of hoColumn4 to voColumn4 Set ComFormatColumn of hoColumn4 to "'<font Tahoma;7>' + 1 rpos '-<b>||A-Z'" Set ComDef of hoColumn4 OLEexCellCaptionFormat to 1 Set ComPosition of hoColumn4 to 4 Set ComWidth of hoColumn4 to 32 Set ComAllowSizing of hoColumn4 to False Send Destroy to hoColumn4 Send Destroy to hoColumns5 Variant voColumns6 Get ComColumns to voColumns6 Handle hoColumns6 Get Create (RefClass(cComColumns)) to hoColumns6 Set pvComObject of hoColumns6 to voColumns6 Variant voColumn5 Get ComAdd of hoColumns6 "Pos.6" to voColumn5 Handle hoColumn5 Get Create (RefClass(cComColumn)) to hoColumn5 Set pvComObject of hoColumn5 to voColumn5 Set ComFormatColumn of hoColumn5 to "'<b>'+ 1 rpos '</b>:<fgcolor=FF0000>|A-Z|'" Set ComDef of hoColumn5 OLEexCellCaptionFormat to 1 Set ComPosition of hoColumn5 to 5 Set ComWidth of hoColumn5 to 48 Set ComAllowSizing of hoColumn5 to False Send Destroy to hoColumn5 Send Destroy to hoColumns6 Variant voItems Get ComItems to voItems Handle hoItems Get Create (RefClass(cComItems)) to hoItems Set pvComObject of hoItems to voItems Variant h Get ComAddItem of hoItems "Root 1" to h Get ComInsertItem of hoItems h "Child 1" to Nothing Get ComInsertItem of hoItems h "Child 2" to Nothing Set ComExpandItem of hoItems h to True Get ComAddItem of hoItems "Root 2" to h Get ComInsertItem of hoItems h "Child 1" to Nothing Get ComInsertItem of hoItems h "Child 2" to Nothing Send Destroy to hoItems Send ComEndUpdate End_Procedure |
802 |
Is there any way to add auto-numbering
|
801 |
How can I format my column to display the percent values “5,00%”
|